Files

13 lines
320 B
Python
Raw Permalink Normal View History

2026-05-12 19:40:31 +09:00
class MockLoop:
def __init__(self, loop_is_running: bool):
self.loop_is_running = loop_is_running
def is_running(self):
return self.loop_is_running
def run_until_complete(self, future):
return future
def run_in_executor(self, executor, func, *args):
return func(*args)