Skip to content

Instantly share code, notes, and snippets.

@rvazarkar
Last active October 23, 2017 19:16
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 rvazarkar/de161e75c25103ae0e479365b4024904 to your computer and use it in GitHub Desktop.
Save rvazarkar/de161e75c25103ae0e479365b4024904 to your computer and use it in GitHub Desktop.
BlockingCollection<string> collection = new BlockingCollection<string>();
foreach (var string in collection.GetConsumingEnumerable()){
DoSomething(string);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment