开发者

Is there a Future<T> type in .NET?

开发者 https://www.devze.com 2022-12-17 07:27 出处:网络
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....

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号