June 2017
Beginner to intermediate
274 pages
6h 49m
English
The cancel method tries to tell the system that we don't want the call to happen after all (refer to the following code example):

This code example is not guaranteed to work because if a worker process has already begun a job, that job is no longer cancellable.
The concurrent.futures module is perfectly suited to farming out computational tasks to multiple processes to take advantage of the CPU power of multicore and multiprocessor computers. The map, submit, wait, and ...
Read now
Unlock full access