[][src]Function smolscale::block_on

pub fn block_on<T: Send + 'static>(
    future: impl Future<Output = T> + Send + 'static
) -> T

Spawns a future onto the global executor and immediately blocks on it.