Last active
December 15, 2015 05:59
-
-
Save djoreilly/5212929 to your computer and use it in GitHub Desktop.
This file contains 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
import eventlet | |
def add(x, y): | |
return x + y | |
e = eventlet.spawn(add, 1, 2) | |
print e | |
res = e.wait() | |
print '1 + 2 =', res |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment