I'm having trouble achieving this. I need a function to execute as soon as the Chain has finished processing all the tasks.
In detail: I've got a Chain. Each task performs a request to a server, and should come back. I can't stop/block and wait for the responses to come and finish (with the builtin 'result' method).
The Chain should run, all responses should be stored and a function should be executed as soon as the last response arrives.
Am I missing something? Is there a way to check that state without having to stop the flux of the app?
Thanks!
I'm having trouble achieving this. I need a function to execute as soon as the Chain has finished processing all the tasks.
In detail: I've got a Chain. Each task performs a request to a server, and should come back. I can't stop/block and wait for the responses to come and finish (with the builtin 'result' method). The Chain should run, all responses should be stored and a function should be executed as soon as the last response arrives.
Am I missing something? Is there a way to check that state without having to stop the flux of the app? Thanks!