The example says that the output will print
“Finished tracking all flights”
But how?
The collect is a suspend function and is waiting for the Flow updates that will never end.
The foreach loop will update the flightAtGate.value to 0 and the collect should wait after that forever.
Please help