What is the idiomatic way of cleaning up async resources in rust?

To be honest, the idiomatic way is to design your code such that you don't need async drop.

If you have another task somewhere, you could send it a message, but you still have to behave sanely if that other task is killed.

3 Likes