Table of Contents

Class: Distributor ./src/peak/events/sources.py

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.

Base Classes   
Observable
    object
Methods   
send
  send 
send ( self,  event )

Send event to one or more callbacks, until accepted


Table of Contents

This document was automatically generated on Mon May 13 01:11:04 2024 by HappyDoc version 2.1