compio-rs / compio

A thread-per-core Rust runtime with IOCP/io_uring/polling.
MIT License
420 stars 37 forks source link

feat(dispatcher): dispatch blocking fn's #260

Closed George-Miao closed 4 months ago

George-Miao commented 4 months ago

This PR adds dispatch_blocking to dispatcher that utilizes the asyncify pool.

In this PR:

George-Miao commented 4 months ago

The blocking closure should run in the Asyncify thread pool, not in the async work thread.

I don't quite understand, it is already

Berrysoft commented 4 months ago

Oh, my fault.