Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################
- # FUTURE TOOLS
- ################
- # each function accepts a list of Futures
- def wait_all(futures):
- ndb.Future.wait_all(futures)
- def wait_each(futures):
- while futures:
- future = ndb.Future.wait_any(futures)
- futures.remove(future)
- yield future
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement