Is there an asynchronous version of DirectoryInfo.GetFiles / Directory.GetDirectories in dotNet? I\'d like to use them in an F# async block, and it\'d be nice to have a ver
I've used several times this approach to get Async objects from functions/procedures, and it always worked great:
let AsyncGetDirectories path = let fn = new Func<_, _>(System.IO.Directory.GetDirectories) Async.BuildPrimitive(path, fn.BeginInvoke, fn.EndInvoke)