Function zksync_concurrency::scope::wait_blocking

source ยท
pub async fn wait_blocking<'a, T: 'static + Send>(
    f: impl 'a + Send + FnOnce() -> T,
) -> T
Expand description

Spawns the blocking closure f and unconditionally awaits for completion. Panics if f panics. Aborts if dropped before completion.