add winloop support and remove deprecated functionality from uvloop#4996
add winloop support and remove deprecated functionality from uvloop#4996
Conversation
cooperlees
left a comment
There was a problem hiding this comment.
LGTM, thanks for this!
I like the function to return the loop. Cleaner.
As for CHANGES.md, just note it in the performance section I'd say and note it's also changed for blackd too.
cooperlees
left a comment
There was a problem hiding this comment.
LGTM - Thanks for this. I forgot about it. Well overdue.
Will leave it for a day or so to see if any other maintainer has preference otherwise I'll merge.
|
Thanks for this! It looks like CI found some crashes in blackd when running without uvloop, are you able to look into those? LogsAlso, are you able to add black/.github/workflows/test.yml Line 108 in 5518079 Thanks! |
|
@cobaltt7 I'm going to see about making it so that there is a safer shutdown mechanism in place since some items are not closing correctly. I'll let you know if I run into false positives when running tests from my own windows 10 laptop. |
|
@cobaltt7 Something strange and unusual that I've noticed is that when going through the test code if I disable |
|
Came with with a workaround that closes the event loop after |
Description
While I was going about writing a new tool for cython that would help me to format it's language and code neatly I was mainly trying to sift though this code in order to try and come up with some logical solutions or approaches for making a code / file writer since I'm implementing a new cython code formatting tool (and a few other cleaver tools in it's toolbag) since a formatting feature (as far as I am aware of) for cython does not exist. While attempting to read though this code to come up with some ideas, I saw that this library was using uvloop and having maintained a branch for windows I decided to add it in and remove some deprecated features that are in both libraries since I and the uvloop maintainers have already deprecated the
install()function.I might however need some guidance on what I should write in
CHANGES.mdbut from there I should be ok to figure out what else I would need to do to get this pull request merged.Checklist - did you ...
--previewstyle, following the stability policy?CHANGES.mdif necessary?