looptime
looptime copied to clipboard
Time dilation & contraction in asyncio event loops (in tests)
For our use case we need to speed up an entire python process using an event loop architecture. Would it be possible to use looptime to speed up the entire...
## Long story short It seems that possibly [TimerHandle#when](https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.TimerHandle.when) isn't properly mocked? I'm trying to write a reschedulable timer, so that if you try to rescheduled it for shorter than...
Currently, `start=None` and `start=0.0` are treated the same — it uses the existing time of the event loop. This was historically acceptable since the event loop was function-scoped and created...
This is a follow-up for: * #9 It attempts to extend the looptime magic to all the implicit event loops of different scopes. * #11
Pytest-asyncio 1.0.0 introduced and enforced the new concept with multiple event loops co-existing at the same time at different scopes. Looptime has slightly adapted to this change, but only to...