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.
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
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |