Skip to main content

send_async_scope

Macro send_async_scope 

Source
macro_rules! send_async_scope {
    ($scope:ident, $body:block) => { ... };
}
Available on crate feature alloc only.
Expand description

Runs a body with a Send asynchronous cleanup scope.

Registered cleanup closures and their futures must be Send; whether the returned future is Send also depends on the body. Its exit and drop behavior matches async_scope!.