Losing Data? Async specific?
Losing Data? Async specific?
Posted Sep 25, 2025 11:27 UTC (Thu) by kpfleming (subscriber, #23250)In reply to: Losing Data? Async specific? by Fowl
Parent article: Canceling asynchronous Rust
Yes, but the example code doesn't allow retry (nor does your blocking example), because the message was already consumed by passing it as an argument to the send() function. Of course the send() function could be changed to accept an immutable reference instead, but then that makes the code using the function more complex because it must ensure that the message gets dropped in the correct situations.
Posted Sep 26, 2025 7:55 UTC (Fri)
by taladar (subscriber, #68407)
[Link]
Losing Data? Async specific?