Closed Berrysoft closed 10 months ago
Do we really need the argument? It's a closure
Yes we do. Otherwise we need a channel to pass the data back. I think the overhead would be unacceptable.
@Berrysoft I mean the argument, not the returned data. We can do FnOnce() -> R.
@George-Miao I see. You're right.
This is a requisite to fix #161
An operation
Asyncify
is added to spawn a blocking method to a new thread.In this PR, the thread poll is also added into io-uring driver. In the future, we may implement
CreateSocket
operation with that pool in case some old kernel doesn't supportsocket
io-uring operation.