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 A开发者_运维技巧rticle
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/
Are you possibly remembering the nHibernate one?
No there isn't. There is such a Java class, which "represents the result of an asynchronous computation".
Jon Skeet has one in his Push LINQ. He also mentions it in is First encounters with Reactive Extensions.
There is future keyword in Delphi Prism as well.
精彩评论