Created
February 16, 2012 00:05
-
-
Save djfroofy/1840237 to your computer and use it in GitHub Desktop.
parallelSearch with inlineCallbacks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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