Open ijackson opened 2 years ago
postage::watch::Sender offers, really, just the interface of Sink. But in fact its implementation never blocks (never returns Pending).
postage::watch::Sender
Sink
Pending
It would be nice to make this a formal part of the API and to have a method which wasn't async. tokio::sync::watch::Sender calls that method send.
async
tokio::sync::watch::Sender
send
This would be a convenience method, equivalent roughly to *self.borrow_mut() = value.
*self.borrow_mut() = value
postage::watch::Sender
offers, really, just the interface ofSink
. But in fact its implementation never blocks (never returnsPending
).It would be nice to make this a formal part of the API and to have a method which wasn't
async
.tokio::sync::watch::Sender
calls that methodsend
.