kanal icon indicating copy to clipboard operation
kanal copied to clipboard

API design for oneshot sender

Open JakkuSakura opened this issue 9 months ago • 0 comments

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

JakkuSakura avatar May 15 '24 15:05 JakkuSakura