Skip to documentation
SLOP

tiny.mprompt.YieldFn

Reference tiny.mprompt YieldFn

Defined in tiny.mprompt.

Function type yieldPrompt runs after the suspend, with the C calling convention, so a caller writes one to receive the resumption when code suspends.

No direct callersNo direct callstiny.mpromptYieldFn
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/mprompt/src/prompt.zig:30

zig
/// Function type `yieldPrompt` runs after the suspend, with the C calling convention, so a caller/// writes one to receive the resumption when code suspends. The function runs on the stack of the/// code that entered or last resumed the prompt. The function receives the new resumption and the/// argument given to `yieldPrompt`. Its return value becomes the result of the call that entered or/// last resumed the prompt. The function may resume the resumption, drop it, or return it for later/// use.pub const YieldFn = *const fn (*Resume, ?*anyopaque) callconv(.c) ?*anyopaque;

Source: lib/mprompt/src/root.zig:73

zig
pub const YieldFn = raw.YieldFn;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433