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