This is easy to test :)

1
2
3
4
5
6
7
8
9
10
11
12
let x = lazy( 
                printfn "start..."
                System.Threading.Thread.Sleep 3000
                printfn "end"
                42)
 
let a = [x;x] 
        |> Seq.map (fun x -> async { return x.Value })
        |> Async.Parallel
        |> Async.RunSynchronously 
 
printfn "%A" a

See also

[link:msdn.microsoft.com]

if you are using .NET 4.0 and want to read about more fine-grained control.

By on 12/10/2010 8:54 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper