method
Sync.channel
Sync.channel() -> int
Create a bounded int FIFO channel.
Returns a channel handle — a fixed-capacity queue of ints for handing values between a producer and a consumer. Push with Sync.send, pull the oldest with Sync.recv, and check with Sync.can_recv / Sync.len.
Example
let ch = Sync.channel()