Книга: Learning Concurrency in Python
Назад: Example
Дальше: Exercise

Output

When you run the preceding program, you'll see that each of the tasks executes, and prints the value that we've passed into each task:

$ python3.6 02_processPoolExe.py
Starting ThreadPoolExecutor
Processing 2
Processing 3
Processing 4
All tasks complete
Назад: Example
Дальше: Exercise