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

Class PersistentCallable

source code

A callable which sets up a persistent communications channel.

Instance Methods [hide private]
 
__init__(self, address, callable, exchange)
Using the given 'address', wrap the given 'callable', using the given 'exchange' to monitor the channels created for communications between this and the created processes, so that when it is called, a background process is started within which the 'callable' will run.
source code
 
__call__(self, *args, **kw)
Invoke the callable with the supplied arguments.
source code
Method Details [hide private]

__init__(self, address, callable, exchange)
(Constructor)

source code 

Using the given 'address', wrap the given 'callable', using the given
'exchange' to monitor the channels created for communications between
this and the created processes, so that when it is called, a background
process is started within which the 'callable' will run. 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.