June 2017
Beginner to intermediate
274 pages
6h 49m
English
The done method returns true if the job is done and false if it's not. A job is done if it was cancelled, if it raised an exception, or if the job function has returned, as shown in the following code example:

The result method returns the return value of the job function if it completed successfully. If the job function raised an exception instead of returning a value, the worker process will catch the exception and hand it back to the controlling process as the result of the job.
In the preceding code example, calling the result method will re-raise the exception, so it can be handled properly.
The timeout parameter ...
Read now
Unlock full access