Skip to content

Instantly share code, notes, and snippets.

@joshuataylor
Created September 21, 2018 01:23
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 joshuataylor/721954bd410df4bb302c53667f0ea580 to your computer and use it in GitHub Desktop.
Save joshuataylor/721954bd410df4bb302c53667f0ea580 to your computer and use it in GitHub Desktop.
foreach (var item in items)
{
var message = new Foobar();
tasks.Add(context.Publish(message));
}
await Task.WhenAll(tasks).ConfigureAwait(false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment