-
Notifications
You must be signed in to change notification settings - Fork 286
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
Expose Mio internals in public API #441
Comments
I've implemented a similar design by having different streams (one of which is crossterm's |
Mio does support Windows. Currently Crossterm uses just Mio internally for both its EventStream (where each EventStream spawns another thread to run the Mio loop and notify the Waker) and its |
Mio is only used for unix systems. Windows uses winapi for reading events. |
We can fix this issue in #435. Though @mcobzarenco is right that when donig this we are going to make the API inconsistent. |
From Mio's Readme: Currently supported platforms: Android It uses Wepoll's strategy to achieve poll-based IO on Windows. |
Mio is going to be removed soon. #735 |
I am writing an application in which I need to poll for an event at the same time as reading user input. I could do this with two threads: one calling
event::read()
and one in a Mio loop of the second thread and my event, but it would be far more efficient if Crossterm exposed an implementation of Mio's Source in its event module so I could use just 1 thread.This should obviously come after the update to Mio 0.7.
The text was updated successfully, but these errors were encountered: