<Returning the first successful task with Kotiln c...
# stackoverflow
u
Returning the first successful task with Kotiln coroutines without waiting or cancellation of others I have a dispatcher that dispatches async tasks and I want it to immediately return the result of the first successful task without waiting or cancellation of the other active tasks. From running the example code below, I want the output to be: Expected Execute task A Execute task B Execution result: Result(success=true, value=B) Result(success=true, value=B) Execute task C Instead of the actual output: Actual Execute task A Execute task B Execution result: Result(success=true, value=B)...