execute(self,
endfunction,
function,
*args,
**argd)
| source code
|
Execute |function| into a diferent thread with args (positional
arguments) and argd (named arguments).
If |endfunction| is diferent of None:
If it is callable: It's called with two arguments. The
first argument is the result, the second is the
exceptionCatched (if any).
In other words: endfunction(res, exc)
If |endfunction| is not callable: the first item is called as a
function and |endfunction| is passed as third argument. First
two arguments are equal to the previous case.
In other words: endfunction[0](res, exc, endfunction)
|result| is
the result value of calling |function|, and |exceptionCatched| is not
None if an exception was catched while |function| was running
|