Macro async_scope

Source
macro_rules! async_scope {
    ($scope:ident, $body:block) => { ... };
}
Expand description

Macro that creates an async scope to automatically await all async defers.

Inside this block, you can register async cleanup tasks by calling scope.defer(...), and they will be executed (awaited) at the end of the block in reverse order.