Closed feelingnothing closed 3 months ago
I'm not sure what you mean by "safe," but not polling a future returned by send()
after calling it neither causes a panic nor breaks the internal logic of tungstenite
. Consequently, not polling the future means that no progress is made, and there is no guarantee that the message has been sent.
I'm an amateur is cancellation safety, but as far as I can see there is no state handling (expect ready, which I don't think can cause problems) in polling. Basically everything in relation to serializing is handled by
tungstenite
in one poll. Am I correct?