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