projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update ignore
[python_utils.git]
/
smart_future.py
diff --git
a/smart_future.py
b/smart_future.py
index f1ffee1c63250b4fb0d0be319a8090ce406f5fc0..1c95973f48ab3bc3a0c9bcd90fa13498f851b8a9 100644
(file)
--- a/
smart_future.py
+++ b/
smart_future.py
@@
-6,13
+6,15
@@
import concurrent.futures as fut
import time
from typing import Callable, List, TypeVar
import time
from typing import Callable, List, TypeVar
+# This module is commonly used by others in here and should avoid
+# taking any unnecessary dependencies back on them.
from deferred_operand import DeferredOperand
import id_generator
T = TypeVar('T')
from deferred_operand import DeferredOperand
import id_generator
T = TypeVar('T')
-def wait_
m
any(futures: List[SmartFuture], *, callback: Callable = None):
+def wait_any(futures: List[SmartFuture], *, callback: Callable = None):
finished: Mapping[int, bool] = {}
x = 0
while True:
finished: Mapping[int, bool] = {}
x = 0
while True: