macro_rules! capture_async {
( $( $code:tt )* ) => { ... };
}
Expand description
Captures async code into a CapturedFuture.
This works by wrapping the code in Box::pin(async move { ... } )
.
macro_rules! capture_async {
( $( $code:tt )* ) => { ... };
}
Captures async code into a CapturedFuture.
This works by wrapping the code in Box::pin(async move { ... } )
.