mode.utils.loops

Event loop utilities.

mode.utils.loops.call_asap(callback: Callable, *args: Any, context: Optional[Any] = None, loop: Optional[AbstractEventLoop] = None) Handle

Call function asap by pushing at the front of the line.

mode.utils.loops.clone_loop(loop: AbstractEventLoop) AbstractEventLoop

Clone loop retaining signal handlers.