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')
-def wait_many(futures: List[SmartFuture], *, callback: Callable = None):
+def wait_any(futures: List[SmartFuture], *, callback: Callable = None):
finished: Mapping[int, bool] = {}
x = 0
while True: