Duplicate exceptions with BroadcastBlock in TPL Dataflow
I’ve written a TPL DataFlow example (https://github.com/squideyes/PodFetch) that takes a slightly different approach to completion and error handling. Here’s the relevant code from Line’s 171 to 201 of Program.cs: scraper.LinkTo(fetcher, link => link != null); scraper.LinkTo(DataflowBlock.NullTarget<Link>()); scraper.HandleCompletion(fetcher); Status.Info.Log(“Fetching APOD’s archive list”); links.ForEach(link => scraper.Post(link)); scraper.Complete(); try { await fetcher.Completion; Status.Finished.Log(“Fetched: {0:N0}, Skipped: {1:N0}, Errors: {2:N0}, … Read more