Class make_timed_function
source code
make_timed_function(function, timeout[, retval2pickleable_fn][,
pickleable2retval_fn]) -> callable object
Create a version of function that times out if it does not complete
within timeout seconds.
Currently, there's an implementation limitation such that function
must return a pickleable object (or nothing). If the function returns an
object that's not pickleable, then please set retval2pickleable_fn and
pickleable2retval_fn to a pair of callbacks to convert the return value
of the function to a pickleable form. If this is impossible, then this
function should not be used.
|
__init__(self,
function,
timeout,
retval2pickleable_fn=None,
pickleable2retval_fn=None) |
source code
|
|
|
|
|
|