Open ukazap opened 5 months ago
In scenarios where multiple tasks are running concurrently, and I need to stop all other tasks prematurely when one of them finishes; Is there a built-in mechanism or an established pattern within the async gem that would help address this use case?
I think this discussion may be of interest: https://github.com/socketry/async/discussions/292
Async::Waiter seems to be what I’m looking for, unfortunately I’m stuck at Ruby 3.0.1. Would it be possible to backport?
Async::Waiter
In scenarios where multiple tasks are running concurrently, and I need to stop all other tasks prematurely when one of them finishes; Is there a built-in mechanism or an established pattern within the async gem that would help address this use case?