tags:

views:

207

answers:

6

My Google-fu is failing me -- Is there a Future<T> type in .NET?

I thought I remembered seeing some code for that, but maybe I was reading Java....

By the way, my musing started after reading This Article

+2  A: 

Are you possibly remembering the nHibernate one?

Oded
+2  A: 

No there isn't. There is such a Java class, which "represents the result of an asynchronous computation".

David M
+1  A: 

Do you mean this? http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/Future.html

Bryan
+10  A: 

Future<T> is a part of the Task Parallel Library and was renamed to Task<TResult> in beta 1.

http://social.msdn.microsoft.com/Forums/en-US/parallelextensions/thread/a3d36832-c81e-4e51-b594-fdbc9d7c0e31/

Yannick M.
+1  A: 

Jon Skeet has one in his Push LINQ. He also mentions it in is First encounters with Reactive Extensions.

Jonas Elfström
A: 

There is future keyword in Delphi Prism as well.

idursun