X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=smart_future.py;fp=smart_future.py;h=e4832d43d5b1674988628e5dae43a67cf8ed0565;hb=3bc4daf1edc121cd633429187392227f2fa61885;hp=f1ffee1c63250b4fb0d0be319a8090ce406f5fc0;hpb=5fd30ef12c100cbb936aa0fdb515b67cff4064db;p=python_utils.git diff --git a/smart_future.py b/smart_future.py index f1ffee1..e4832d4 100644 --- a/smart_future.py +++ b/smart_future.py @@ -12,7 +12,7 @@ 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: