Drop async to release resources

Back in my mind I have some vague memory of reading about drop async (allow some kind of destructor to run when an async function terminates). I'd like to clean up a unix domain socket listener when the listener terminates (read: when the application terminates), but can't seem to find any way to do it [where the cleanup is directly tied to the listener itself].

Am I just remembering a proposal, or is there an actual mechanism to do this?

Async drop is not supported at the moment.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.