[][src]Macro async_scoped::scope_and_block

macro_rules! scope_and_block {
    ($fn: expr) => { ... };
}

A macro that creates a scope and immediately awaits, blocking the current thread for spawned futures to complete. The outputs of the futures are collected as a Vec and returned along with the output of the block.

Safety

This macro is safe to the best of our understanding.