/// Set the default blocking implementation for the duration of the closure.
///
/// **NOTE:** This is intended specifically for use by `tokio` 0.2's
/// backwards-compatibility layer. In general, user code should not override the
/// blocking implementation. If you use this, make sure you know what you're
/// doing.
Set the default blocking implementation for the duration of the closure.
NOTE:** This is intended specifically for use by `tokio` 0.2's
backwards-compatibility layer. In general, user code should not override the
blocking implementation. If you use this, make sure you know what you're
doing.
Set the default blocking implementation for the duration of the closure . NOTE : ** This is intended specifically for use by ` tokio ` 0 . 2 ' s backwards - compatibility layer . In general user code should not override the blocking implementation . If you use this make sure you know what you ' re doing .
pub fn with_default<F, R>(blocking: BlockingImpl, enter: &mut Enter, f: F) -> R
where
    F: FnOnce(&mut Enter) -> R,
{
    let _guard = set_default(blocking);
    f(enter)
}
pub fn with_default < F , R > ( blocking : BlockingImpl , enter : & mut Enter , f : F ) -> R where F : FnOnce ( & mut Enter ) -> R , { let _guard = set_default ( blocking ) ; f ( enter ) }
Set the default blocking implementation for the duration of the closure.
Set the default blocking implementation for the duration of the closure .
blocking
BlockingImpl
enter
&mut Enter
f
F