Hi Julien,

I can't reproduce your problem.

When I try your sample, all 100 numbers are printed. A few seconds later, the 5 is printed. If I replace AsyncFuture by Run, I wait 5 seconds and then everything is printed.

Async.Run runs the computation and waits (blocks) for the result. Async.AsyncFuture doesn't block, it's asynchronous. When you access to the Value member, it waits for the result (if computation isn't finished).

Laurent.

By on 4/10/2008 8:44 AM ()

Hi,

It does indeed work, but oddly enough the "bug" still remains in VS...

In any case, thanks a lot for the info on Future vs. Run ! That makes sense, at last!

Julien

By on 4/10/2008 12:09 PM ()
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