Skip to content

Instantly share code, notes, and snippets.

@ColinDKelley
Created March 13, 2014 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ColinDKelley/9519582 to your computer and use it in GitHub Desktop.
Save ColinDKelley/9519582 to your computer and use it in GitHub Desktop.
parallel_sync-example.rb
responses =
ExceptionalSynchrony::ParallelSync.parallel(EventMachine) do |parallel|
messages.each do |message|
parallel.add { message.send }
end
end
responses.each { ... }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment