Sends each event to one callback
This is perhaps the simplest possible IEventSource. When its send()
method is called, the supplied event is passed to any registered
callbacks. As soon as a callback "accepts" the event (by returning a true
value), distribution of the event stops.
Yielding to an events.Distributor in a task always suspends the task
until the next send() call on the distributor.
|
Methods
|
|
send
|
|
|
send
|
send ( self, event )
Send event to one or more callbacks, until accepted
|
|