/// Calls the given closure, then block until all futures submitted for
/// execution complete.
///
/// In more detail, this function will block until:
/// - All executing futures are complete, or
/// - `cancel_all_spawned` is invoked.
Calls the given closure, then block until all futures submitted for
execution complete.

In more detail, this function will block until:
All executing futures are complete, or
`cancel_all_spawned` is invoked.
Calls the given closure then block until all futures submitted for execution complete . In more detail this function will block until : All executing futures are complete or ` cancel_all_spawned ` is invoked .
pub fn run<F, R>(f: F) -> R
where F: FnOnce(&mut Context) -> R
{
    sleep::BlockThread::with_current(|mut sleep| {
        TaskRunner::enter(&mut sleep, f)
    })
}
pub fn run < F , R > ( f : F ) -> R where F : FnOnce ( & mut Context ) -> R { sleep :: BlockThread :: with_current ( | mut sleep | { TaskRunner :: enter ( & mut sleep , f ) } ) }
Calls the given closure, then block until all futures submitted for
execution complete.
Calls the given closure then block until all futures submitted for execution complete .
f
F