pub fn bounded_sync<T>(capacity: usize) -> (SyncSender<T>, SyncReceiver<T>)Expand description
Allocates a bounded channel and returns the synchronous handles as a sender, receiver pair.
Because handles can be converted freely between sync and async, and Rust async is polling, unbuffered channels are not supported. A capacity of 0 is rounded up to 1.