mirror of
https://github.com/koush/scrypted.git
synced 2026-04-24 17:00:24 +01:00
8 lines
173 B
Python
8 lines
173 B
Python
from asyncio.futures import Future
|
|
|
|
def safe_set_result(future: Future):
|
|
try:
|
|
if not future.done():
|
|
future.set_result(None)
|
|
except:
|
|
pass |