patch_seq_yield

Function patch_seq_yield 

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

Yield a value from within a woven strand

Stack effect: ( WeaveCtx a – WeaveCtx a )

Sends value a to the caller and waits for the next resume value. The WeaveCtx must be passed through - it contains the channels.

§Panics

Panics if WeaveCtx is not on the stack.

§Safety

Stack must have a value on top and WeaveCtx below it