Skip to content

Instantly share code, notes, and snippets.

@djoreilly
Last active December 15, 2015 05:59
Show Gist options
  • Save djoreilly/5212929 to your computer and use it in GitHub Desktop.
Save djoreilly/5212929 to your computer and use it in GitHub Desktop.
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