O'Reilly logo
  • Baydr Earles thinks this is interesting:

public class DirectoryWalker
{
   private ActionBlock<string> fileActionBlock;
   private TransformManyBlock<string, string> directoryBrowseBlock;
        
   public DirectoryWalker(Action<string> fileAction)
   {
     directoryBrowseBlock = new TransformManyBlock<string, string>(
               ...

From

Cover of Pro Asynchronous Programming with .NET

Note

Recursion using TPL dataflow