Package afx :: Module pubsub :: Class publisher
[hide private]
[frames] | no frames]

Class publisher

source code

object --+
         |
        publisher

Publish-subscribe mechanism. Subscribers are just channels.

If just_once is True, then at most one item at a time will be put in any subscription channel.

Instance Methods [hide private]
 
__init__(self, just_once=False)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
register(self, listener) source code
 
publish(self, item) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, just_once=False)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

publish(self, item)

source code 
Decorators:
  • @af.task