I’m creating a project in VS 2012 using C# and .Net 4.5. I need to iterate through a directory tree, but I’d like to do it asynchronously. I think I’ll have to do something with the Task class, but I’m not sure. I also need to be able to report progress on the process.
Share
Just wrap the entire function in
Task.Run(()=>{ ... });and it will be run asynchronously in a thread pool thread.