Permalink
Browse files

Fixed the Events example

  • Loading branch information...
1 parent e4c1f44 commit dc5e4f72f0f065650890be713549279e8d805fc1 @pors committed Mar 28, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 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([

0 comments on commit dc5e4f7

Please sign in to comment.