tiny.mprompt.resumeShouldUnwind
Defined in tiny.mprompt.
Returns 1 for a multi-shot handle that holds the last reference and has never been resumed, and 0 otherwise, one-shot handles included, for the effect layer to choose between unwinding the suspended body and dropping one reference before releasing a resumption.
Source
Source: lib/mprompt/src/prompt.zig:669
zig
/// Returns 1 for a multi-shot handle that holds the last reference and has never been resumed, and/// 0 otherwise, one-shot handles included, for the effect layer to choose between unwinding the/// suspended body and dropping one reference before releasing a resumption.pub fn resumeShouldUnwind(resume_ptr: *Resume) c_int { const mr = resumeIsMulti(resume_ptr) orelse return 0; return if (mr.refcount == 1 and mr.resume_count == 0) 1 else 0;}Source: lib/mprompt/src/root.zig:92
zig
pub const resumeShouldUnwind = raw.resumeShouldUnwind;Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |