3 ms·
Only for file access, which wasn't supported by async on Linux until io-uring.
by littlestymaar 3y ago
Only for file access, which wasn't supported by async on Linux until io-uring.
- nextaccountic 3y agoNo, any spawn_blocking will run on its own dedicated thread
- littlestymaar 3y agoI missread the comment above and read `async` instead of `sync`, my bad. (Your response isn't entirely accurate though: it's using a thread pool whose size is configurable, not one thread per spaw_blocking)