nemo_gym.utils.deadlines
nemo_gym.utils.deadlines
Deadline helpers that do not depend on which clock the event loop uses.
Module Contents
Functions
API
Return an asyncio timeout that expires at a time.monotonic() deadline.
asyncio.timeout_at compares its deadline with loop.time(), which is not always time.monotonic():
under uvloop on macOS, loop.time() can run days ahead of it, so a monotonic deadline passed to timeout_at
expires at once. This converts the deadline to a remaining duration instead.
None never expires.