socketry / async

An awesome asynchronous event-driven reactor for Ruby.
MIT License
2.12k stars 86 forks source link

Add guides about barriers with a fan out and termination #205

Closed trevorturk closed 1 year ago

trevorturk commented 1 year ago

Add a bit more to the guides about how to use Async::Barrier with a fan out of Async::Tasks with proper termination.

Types of Changes

Contribution

ioquatix commented 1 year ago

This looks good to me. I wonder if we should break this out into a separate document about expected patterns, e.g. fan out, map reduce, first N completed, etc.