2019-11-13 10:08:22 +00:00
|
|
|
Task A: Compute factorial(2)...
|
|
|
|
Task B: Compute factorial(2)...
|
|
|
|
Task C: Compute factorial(2)...
|
|
|
|
Task A: factorial(2) = 2
|
|
|
|
Task B: Compute factorial(3)...
|
|
|
|
Task C: Compute factorial(3)...
|
|
|
|
Task B: factorial(3) = 6
|
|
|
|
Task C: Compute factorial(4)...
|
|
|
|
Task C: factorial(4) = 24
|
|
|
|
[2, 6, 24]
|
2022-03-29 02:57:04 +01:00
|
|
|
====
|
2022-07-21 00:54:02 +01:00
|
|
|
[]
|
|
|
|
====
|
2021-11-17 02:45:42 +00:00
|
|
|
start 2
|
|
|
|
end 2
|
|
|
|
[CancelledError(), 2]
|
2022-03-29 02:57:04 +01:00
|
|
|
====
|
|
|
|
start 1
|
|
|
|
task_raise start 2
|
|
|
|
end 1
|
2022-04-20 08:11:55 +01:00
|
|
|
task_raise raise 2
|
2022-03-29 02:57:04 +01:00
|
|
|
[1, ValueError(2,)]
|
|
|
|
====
|
|
|
|
task_loop start 1
|
|
|
|
task_raise start 2
|
|
|
|
task_loop loop 1
|
2022-04-20 08:11:55 +01:00
|
|
|
task_raise raise 2
|
2022-03-29 02:57:04 +01:00
|
|
|
ValueError(2,)
|
|
|
|
False True
|
|
|
|
====
|
|
|
|
task_raise start 1
|
|
|
|
task_raise start 2
|
2022-04-20 08:11:55 +01:00
|
|
|
task_raise raise 1
|
|
|
|
task_raise raise 2
|
2022-03-29 02:57:04 +01:00
|
|
|
ValueError(1,)
|
|
|
|
True True
|
|
|
|
====
|
|
|
|
gather_task
|
|
|
|
start 1
|
|
|
|
start 2
|
2022-04-21 04:19:34 +01:00
|
|
|
====
|
|
|
|
gather_task
|
|
|
|
start 1
|
|
|
|
start 2
|
|
|
|
====
|
|
|
|
gather_task
|
|
|
|
start 1
|
|
|
|
start 2
|
|
|
|
end 1
|
|
|
|
end 2
|
|
|
|
====
|
|
|
|
gather_task
|
|
|
|
start 1
|
|
|
|
start 2
|
|
|
|
end 1
|
|
|
|
end 2
|