Skip to content

Instantly share code, notes, and snippets.

@djfroofy
Created February 16, 2012 00:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djfroofy/1840237 to your computer and use it in GitHub Desktop.
Save djfroofy/1840237 to your computer and use it in GitHub Desktop.
parallelSearch with inlineCallbacks
@inlineCallbacks
def parallelSearch(keywords):
out = []
for key in keywords:
out.append((yield search(k)))
returnValue(out)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment