Commit a0b19c3d authored by Denis Bilenko's avatar Denis Bilenko

Greenlet: add 'started' property

parent 675db86e
......@@ -156,6 +156,10 @@ class Greenlet(greenlet):
self._notifier = None
self._start_event = None
@property
def started(self):
return self._start_event is not None or bool(self)
def ready(self):
"""Return true if and only if the greenlet has finished execution."""
return self.dead or self._exception is not _NONE
......
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