Package Products :: Package ZenUtils :: Module Executor :: Class TwistedExecutor |
[hide private]
[frames] | no frames]

# Class TwistedExecutor

source code

    object --+
             |
            TwistedExecutor

Executes up to N callables at a time. N is determined by the maxParrallel used to construct an instance, unlimited by default.

Instance Methods | [hide private]
__init__(self, maxParrallel=None) | source code
setMax(self, max) | source code
getMax(self) | source code
running(self) | source code
queued(self) | source code
submit(self, callable, *args, **kw) submit a callable to be executed. | source code
_runTask(self) | source code
_taskFinished(self, result) | source code

Method Details | [hide private]

### __init__(self, maxParrallel=None) (Constructor) | source code
Overrides: object.__init__ (inherited documentation)

### running(self) | source code
Decorators: `@property`

### queued(self) | source code
Decorators: `@property`

### submit(self, callable, *args, **kw) | source code
submit a callable to be executed. A deferred will be returned with the the result of the callable.