patch_seq_chan_receive

Function patch_seq_chan_receive 

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

Receive a value from a channel

Stack effect: ( Channel – value )

Cooperatively blocks until a value is available. The strand yields and May handles scheduling.

§Multi-Consumer Support

Multiple strands can receive from the same channel concurrently (MPMC). Each message is delivered to exactly one receiver (work-stealing semantics).

§Safety

Stack must have a Channel on top