This commit is contained in:
Jamie Bliss 2016-07-28 00:43:21 -04:00
parent eddd11ae86
commit 57488e2b4d

View file

@ -8,6 +8,7 @@ The best way to "declare" an event is something like::
__xonsh_events__.on_spam.__doc__ = "Comes with eggs"
"""
class Event(set):
"""
A given event that handlers can register against.
@ -58,7 +59,7 @@ class Event(set):
Returns that truthy value.
"""
for rv in self.calleach(*pargs, **kwargs):
if rv:
if rv:
return rv
def untilFalse(self, *pargs, **kwargs):
@ -96,6 +97,7 @@ class Event(set):
else:
return pargs
class Events:
"""
Container for all events in a system.