Package rosh :: Package impl :: Module topic :: Class subscribe
[frames] | no frames]

Class subscribe

source code

object --+
         |
        subscribe

Subscribe to topic instance. 'with:' semantics enable auto-unsubscribe.

Instance Methods
 
__init__(self, ns_obj, cb=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__enter__(self) source code
 
__exit__(self, type, value, traceback) source code
 
add_callback(self, cb)
Register a new callback on this handle.
source code
 
remove_callback(self, cb)
Unregister callback on this handle.
source code
 
close(self) source code
 
__repr__(self)
repr(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, ns_obj, cb=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

add_callback(self, cb)

source code 

Register a new callback on this handle.

Not threadsafe.

remove_callback(self, cb)

source code 

Unregister callback on this handle.

Not threadsafe.

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)