Macro capture_async

Source
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 { ... } ).