| Home | Trees | Indices | Help |
|
|---|
|
|
Multithreading class that wraps Python threading.Thread. Specifically, this class makes possible to easily execute a function on a separate thread.
Python threads can't be stopped, paused or more generically arbitrarily controlled.
>>> from entropy.misc import ParallelTask >>> parallel = ParallelTask(print, "hello world", 123) >>> parallel.start() hello world 123 >>> parallel.kill()
| Instance Methods | |||
|
|||
|
|||
| Python callable object |
|
||
| Python object |
|
||
|
Inherited from Inherited from |
|||
| Properties | |
|
Inherited from |
| Method Details |
ParallelTask constructor Provide a function and its arguments as arguments of this constructor.
|
This method is called automatically when start() is called. Don't call this directly!!!
|
Return the function passed to constructor that is going to be executed.
|
Return result of the last parallel function call passed to constructor.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Aug 5 16:58:56 2009 | http://epydoc.sourceforge.net |