patch_seq_resume

Function patch_seq_resume 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn patch_seq_resume(stack: Stack) -> Stack
Expand description

Resume a woven strand with a value

Stack effect: ( WeaveHandle a – WeaveHandle a Bool )

Sends value a to the weave and waits for it to yield. Returns (handle, yielded_value, has_more).

  • has_more = true: weave yielded a value
  • has_more = false: weave completed

§Error Handling

This function never panics (panicking in extern “C” is UB). On fatal error (null stack, type mismatch), it prints an error and aborts the process.

§Safety

Stack must have a value on top and WeaveHandle below it