Author minrk
Recipients Ben.Darnell, Big Stone, asvetlov, carltongibson, cmeyer, jack1142, lukasz.langa, mikeshardmind, minrk, njs, steve.dower, yselivanov
Date 2021-05-10.09:04:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1620637470.24.0.120313670017.issue37373@roundup.psfhosted.org>
In-reply-to
Content
A hiccup to using uvloop is that it doesn't support Windows yet (https://github.com/MagicStack/uvloop/issues/14), so it can't be used in the affected environment.


I'm exploring this again for pyzmq / Jupyter, and currently investigating relying on tornado's AddThread loop functionality. It's even slightly easier for tornado, which can reasonably set the proactor-wrapper policy at IOLoop start time, which means `asyncio.get_event_loop()` returns a loop with add_reader. But pyzmq doesn't get invoked until an event loop is already running. That means the selector thread needs to work not as a wrapper of the loop itself, as in tornado's AddThreadSelector, but attached after-the-fact. Using tornado's AddThread seems to work for this, but I'm not sure that should be assumed.
History
Date User Action Args
2021-05-10 09:04:30minrksetrecipients: + minrk, njs, asvetlov, lukasz.langa, Ben.Darnell, yselivanov, steve.dower, Big Stone, cmeyer, mikeshardmind, jack1142, carltongibson
2021-05-10 09:04:30minrksetmessageid: <1620637470.24.0.120313670017.issue37373@roundup.psfhosted.org>
2021-05-10 09:04:30minrklinkissue37373 messages
2021-05-10 09:04:30minrkcreate