kristjanvalur / py-asynkit

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

Remove the `result` variable for `sleep_insert()` #10

Closed kristjanvalur closed 1 year ago

kristjanvalur commented 1 year ago

asyncio.sleep() has an optional result argument which is just there for convenience if the intent is to replace an actual async call with sleep for testing purposes.

We remove this weird special case. We also rename and clean up some other methods for consistency.