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

§Safety

Stack must have a value on top and WeaveHandle below it