Package mdp :: Package parallel :: Class TaskCallableWrapper
[hide private]
[frames] | no frames]

Class TaskCallableWrapper


Wrapper to provide a fork method for simple callables like a function.

This wrapper is applied internally in Scheduler.

Instance Methods [hide private]
 
__call__(self, data)
Call the internal callable with the data and return the result.
 
__init__(self, callable)
Store and wrap the callable.

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

    Inherited from TaskCallable
 
fork(self)
Return a fork of this callable, e.g.
 
setup_environment(self)
This hook method is called when the callable is first loaded.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__call__(self, data)
(Call operator)

 
Call the internal callable with the data and return the result.

Overrides: TaskCallable.__call__

__init__(self, callable)
(Constructor)

 
Store and wrap the callable.

Overrides: object.__init__