Kristjan/get ready queue
This pull request adds introspection methods to uvloop.Loop and uvloop.loop.Handle.
-
Loop.get_ready_queue()exposes the internalDeque, which is available as_readyon anasyncioloop object. -
Handle.get_callback()returns the registered python callback and args. forasynciothis information can be gleaned fromHandle._callback
This allows uvloop to work with applications which examine and manipulate the ready queue of runnable tasks, such as https://github.com/kristjanvalur/py-asynkit. A branch which uses these features is available at https://github.com/kristjanvalur/py-asynkit/tree/dev/uvloop
An alternative implementation would emulate these same internal attributes as asyncio has, but IMHO those should also be better exposed by accessor methods.
If you want to check out the source code, I believe it's in the repo under example/src. There is a useDocsActions hook that might prove helpful
Hey! This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.