kristjanvalur / py-asynkit

Tools for Python coroutines and advanced scheduling for `asyncio`
MIT License
13 stars 1 forks source link

Add Monitor.awaitable() method #13

Closed kristjanvalur closed 1 year ago

kristjanvalur commented 1 year ago

the awaitable() method creates a MonitorAwaitable instance with an __await__ method, which can be used to repeatedly await, without having to invoke the aawait() method explicitly every time.