Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed the Events example

  • Loading branch information...
commit dc5e4f72f0f065650890be713549279e8d805fc1 1 parent e4c1f44
Mark Pors authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 index.html
6 index.html
View
@@ -637,9 +637,9 @@ <h3 class="author">
<pre>
<code class="python">import gevent
-from gevent.event import AsyncResult
+from gevent.event import Event
-a = AsyncResult()
+a = Event()
def setter():
"""
@@ -653,7 +653,7 @@ <h3 class="author">
"""
After 3 seconds the get call will unblock.
"""
- a.get() # blocking
+ a.wait() # blocking
print 'I live!'
gevent.joinall([
Please sign in to comment.
Something went wrong with that request. Please try again.