Commit fb306e0e authored by Denis Bilenko's avatar Denis Bilenko

Event: add 'ready' as an alias for 'is_set'

parent 2895d0bd
......@@ -31,6 +31,7 @@ class Event(object):
return self._flag
isSet = is_set # makes it a better drop-in replacement for threading.Event
ready = is_set # makes it compatible with AsyncResult and Greenlet (for example in wait())
def set(self):
"""Set the internal flag to true. All greenlets waiting for it to become true are awakened.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment