I started using .NET4.5 for async and await. All examples seem to use the following to simulate a long term operation:
await Task.Delay(3000);
Now my long term calculations are really similar to:
System.Threading.Thread.Sleep(3000)
for example:
for(i=0;i<1000000000;i++)
i=i*2;
How do I make this work with async and await? Now it seems I can ‘only’ use methods like webrequests, WCF, etc… with this great new method.
Where am I missing the point?
Would work, but it’s rather pointless