#`park` in async_runtime
3 messages · Page 1 of 1 (latest)
You're probably looking for std::sync::mpsc::sync_channel.
If you want one that doesn't block when the sender's buffer is full (while waiting for the receiver to empty it) then you can use std::sync::mpsc::channel instead.