Книга: Learning Concurrency in Python
Назад: Zip() example
Дальше: The merge_all() operator

Output

Upon running the preceding program, you should see the following output in the console. First, you should see the input blocking the program from prematurely ending and then a stream of four tuples, the first value of which represents the relative value in list1 times the current interval value, and the second of which is just the interval value:

$ python3.6 06_combining.py
Press any key to quit
(0, 0)
(38, 1)
(86, 2)
(69, 3)
Назад: Zip() example
Дальше: The merge_all() operator