-
-
Notifications
You must be signed in to change notification settings - Fork 548
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This removes quite a bit of complexity from how async/await works: * The connection_coro_yield enum doesn't have any CONN_CORO_ASYNC_AWAIT_* value anymore, because the CONN_CORO_WANT_* values are used instead. * epoll flags are now set using the same function that awaitv uses, and that resume_coro() used to use, so there's no need to pack the file descriptor and the interest in the coroutine yield value anymore. * resume_coro() is now simplified, not needing to do any work related to async/await anymore, as that's now performed by the async_await_fd() auxiliary function: so now you only pay the (cheap!) price if you're using this feature. In addition, signaling if an awaited file descriptor was hung up is done differently, via the return value of the async/await functions.
- Loading branch information
Showing
3 changed files
with
192 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.