Closed George-Miao closed 4 months ago
This PR adds dispatch_blocking to dispatcher that utilizes the asyncify pool.
dispatch_blocking
In this PR:
FnOnce
Result<oneshot::Receiver<R>>
The blocking closure should run in the Asyncify thread pool, not in the async work thread.
I don't quite understand, it is already
Oh, my fault.
This PR adds
dispatch_blocking
to dispatcher that utilizes the asyncify pool.In this PR:
FnOnce
dispatch_blocking
that returnsResult<oneshot::Receiver<R>>
to obtain the result from the spawned task