Module pprocess :: Class BackgroundCallable
[hide private]
[frames] | no frames]

Class BackgroundCallable

source code


A callable which sets up a persistent communications channel, but is
unmanaged by an exchange.

Instance Methods [hide private]
 
__init__(self, address, callable)
Using the given 'address', wrap the given 'callable'.
source code
 
__call__(self, *args, **kw)
Invoke the callable with the supplied arguments.
source code
Method Details [hide private]

__init__(self, address, callable)
(Constructor)

source code 

Using the given 'address', wrap the given 'callable'. This object can
then be invoked, but the wrapped callable will be run in a background
process. Note that the 'callable' must be parallel-aware (that is, have
a 'channel' parameter). Use the MakeParallel class to wrap other kinds
of callable objects.