Package gofer :: Package rmi :: Module threadpool :: Class Call
[hide private]
[frames] | no frames]

Class Call

source code

A call to be executed by the thread pool.

Instance Methods [hide private]
 
__init__(self, id, fn, args=None, kwargs=None) source code
 
__call__(self, pool)
Execute the call.
source code
 
__str__(self) source code
Instance Variables [hide private]
list args
The list of args passed to the callable.
callable fn
The function/method to be executed.
str id
The unique call ID.
dict kwargs
The list of keyword args passed to the callable.
Method Details [hide private]

__init__(self, id, fn, args=None, kwargs=None)
(Constructor)

source code 
Parameters:
  • id (str) - The unique call ID.
  • fn (callable) - The function/method to be executed.
  • args (tuple) - The list of args passed to the callable.
  • kwargs (dict) - The list of keyword args passed to the callable.

__call__(self, pool)
(Call operator)

source code 

Execute the call.

Parameters: