Skip to documentation
SLOP

tiny.mprompt.promptParent

Reference tiny.mprompt promptParent

Defined in tiny.mprompt.

Returns the next active prompt outward from p, or the innermost active prompt when p is null, so a caller walks the thread's active prompts outward one step per call, as the runtime does to check that a suspend targets an active prompt.

Called byCallsNo direct callsprivate sourcelib.mprompt.src.promptpromptIsAncestortiny.mpromptpromptParent
Static calls · unresolved targets: 0 · external targets: 0.

Source

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

zig
/// Returns the next active prompt outward from `p`, or the innermost active prompt when `p` is/// null, so a caller walks the thread's active prompts outward one step per call, as the runtime/// does to check that a suspend targets an active prompt. For a suspended `p`, the call returns/// null or the next prompt outward inside the captured chain.pub fn promptParent(p: ?*Prompt) ?*Prompt {    return if (p) |prompt_ptr| prompt_ptr.parent else prompt_top;}

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

zig
pub const promptParent = raw.promptParent;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433