-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Streams Poll API #19572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Streams Poll API #19572
Conversation
Currently just kqueue and poll on MacOS are properly tested. The epoll should be easy to get tested but will need to then properly look to iocp and event ports. For event ports I will need to first set OmniOS (Illumos) up. |
It needs to track complete one shots and remove same fd filters
This is to handle HUP difference in kqueue
epoll also uses it
So epoll looks good and all tests passing there. Tha API also builds on Windows but unsuprisingly the iocp backend does not really work well so this is someting that I will be looking to. And then event ports will likely need some work as well which I will look then too. |
This introduces a new API for polling that supports various backends:
The API tries to reflect primarily epoll and the rest is done in a way so it is compatible. There will be RFC for the exposed API of course.