Function unblock

Source
pub async fn unblock<T: 'static + Send>(
    f: impl FnOnce() -> T + Send + 'static,
) -> T
Expand description

This is similar to fuchsia-async’s unblock except that it used a fixed size thread pool which has the advantage of not making traces difficult to decipher because of many threads being spawned.