Skip to documentation
SLOP

tiny.mprompt.resumeShouldUnwind

Reference 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.

Called byCallsNo direct callersprivate sourcelib.mprompt.src.promptresumeIsMultitiny.mpromptresumeShouldUnwind
Static calls · unresolved targets: 0 · external targets: 0.

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

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433