Authorised Territory code examples - This #dotnet #C #tutorial shows how to use BatchBlock dataflow component found in Task Parallel Library.
First, we create BatchBlock with a set size and asynchronously send records to it.
Next, data is read from the batchBlock using a for loop and displayed in a console window.
Finally, for loop is replaced with OutputAvailableAsync function and ran again to ensure the same result.