You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using aiojobs with Python 3.8 with warnings enabled, deprecation warnings are emitted at various places where a loop argument is passed to asyncio APIs. This is because explicit passing of that argument was deprecated and will be removed in Python 3.10. For some of the warnings, see for example this Travis CI build.
It would be good to fix these warnings. Looking at the code, it seems like the most sensible course of action would be to stop passing the loop argument to Job and Scheduler and just switch them to asyncio.get_running_loop() (with a asyncio.get_event_loop() fallback for Python < 3.7).
The text was updated successfully, but these errors were encountered:
When using aiojobs with Python 3.8 with warnings enabled, deprecation warnings are emitted at various places where a
loop
argument is passed toasyncio
APIs. This is because explicit passing of that argument was deprecated and will be removed in Python 3.10. For some of the warnings, see for example this Travis CI build.It would be good to fix these warnings. Looking at the code, it seems like the most sensible course of action would be to stop passing the
loop
argument toJob
andScheduler
and just switch them toasyncio.get_running_loop()
(with aasyncio.get_event_loop()
fallback for Python < 3.7).The text was updated successfully, but these errors were encountered: