Function blocking_permit::register_dispatch_pool[][src]

pub fn register_dispatch_pool(pool: DispatchPool) -> Option<DispatchPool>
Expand description

Register a DispatchPool on the calling thread.

Any prior instance is returned. This consumes the pool by value, but it can be cloned beforehand to preserve an owned handle.