I have an async fn
that returns a type, and want to implement Drop
on that type that calls another async
function. It's not clear how to do this, and I can't find anything in the docs. The most illuminating article I found is Asynchronous Destructors by withoutboats, but I don't really understand the reasoning, or where this feature is at.
It's not clear how to do this, and I can't find anything in the docs
That's because it's not possible; there is no "async Drop
". Drop
must be synchronous.
See also:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With