Spaces:
Running
Running
File size: 423 Bytes
30ebc6b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | from concurrent.futures import Future
class DummyCommitSchedulerLock:
def __enter__(self):
return None
def __exit__(self, exception_type, exception_value, exception_traceback):
pass
class DummyCommitScheduler:
def __init__(self):
self.lock = DummyCommitSchedulerLock()
def trigger(self) -> Future:
fut: Future = Future()
fut.set_result(None)
return fut
|