Skip to documentation
SLOP

tiny.mprompt.Resume

Reference tiny.mprompt Resume

Defined in tiny.mprompt.

An opaque handle to a suspended prompt, so a yield function receives one and resumes or drops it, and code that suspends to its caller hands it back as the caller's result.

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

Source

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

zig
/// An opaque handle to a suspended prompt, so a yield function receives one and resumes or drops/// it, and code that suspends to its caller hands it back as the caller's result. The prompt's own/// address serves as a handle resumable at most once, continuing in place with no copy (one-shot/// handle). A multi-shot handle is the address of a reference-counted record with bit 2 set, and/// the runtime tells the two apart by that bit. Each handle, and each reference of a multi-shot/// handle, is resumed or dropped exactly once. A handle that is neither keeps its stacklets/// allocated.pub const Resume = opaque {};

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

zig
pub const Resume = raw.Resume;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433