7 ms·
This just sounds like a threadpool implementation to me. Sure you can brand it async, but it's not what we generally mean when we say async.
by nialv7 1y ago
This just sounds like a threadpool implementation to me. Sure you can brand it async, but it's not what we generally mean when we say async.
- flohofwoe 1y agoThread-pool is just one implementation under that new async interface. There are other implementations planned which to JS-style async/await (e.g. stackless coroutines) or green threads (stackful coroutines).
- negrel 1y agoMany async implementation are still based on thread pools. rust's tokio, node's libuv uses a thread pool for file I/O. Before io_uring (which is disabled on most servers until it mature), there was no good way to do async I/O on file on Linux.
- nialv7 1y agoSure async might be implemented by threadpools, but the threadpool itself is not what we usually refer to when we talk about async as a language feature. e.g. Rust async may be backed by a threadpool, but it could also run single threaded.