register_dispatch_pool

Function register_dispatch_pool 

Source
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.