kanal
kanal copied to clipboard
API design for oneshot sender
OneshotAsyncSender::send is async, and OneshotSender::send uses a for loop they are not necessary, as an oneshot sender can immediately know if a receiver is dropped.
e.g. tokio::sync::oneshot::Sender provides a send that immediately returns