Click here to Skip to main content
15,919,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is that any API that c# can implement future pattern of threading?
like java's future task and callable interface.

thanks.
Posted

1 solution

If you have .Net 4 available to you then check out the System.Threading.Tasks[^] namespace. It contains some things look like what you're asking for - particularly the Task class.

Prior to .Net 4 the closest that I know of would be the IAsyncResult[^] class. The interface is a bit different but it does basically the same thing.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900