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 Bool )

Returns (value, true) on success, (0, false) on failure (closed channel). Errors are values, not crashes.

§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