Marek Safar
99aa6cf9b2
[corlib] Promise style tasks cannot be started manually. Fixes #16857
2014-01-02 14:13:00 +01:00
Marek Safar
ee5939881d
Fixed TaskFactory::ContinueWhenAny with func result. Fixes #14839
2013-09-20 19:41:15 +02:00
Rodrigo Kumpera
1b92a4148c
Since MOBILE implies NET_4_* now, take this into account and simplify our ifdefs.
2013-02-11 18:42:18 -05:00
Jeremie Laval
e7f4360ad3
[corlib] Fix unobserved exception being mistakenly propagated to finalizer thread when using ContinueWhenAll.
...
The problem was that we internally use Task.WhenAll inside TaskFactory.ContinueWhenAll to merge the given tasks into one that we can Continue on to run the passed arguments.
However, the behavior of WhenAll is to collect the exceptions that happened on its parent tasks and to set the aggregate on itself which was not catched by our continuation internally, leading to the exception remaining unobserved and escalating to the finalizer thread.
2012-11-15 15:01:32 +00:00
Marek Safar
bfe4ded32a
Pass correct cancellation token to Task::Delay continuation
2012-04-26 17:21:03 +01:00
Marek Safar
5b9a3f9e9a
Remove unused parameter
2012-04-11 10:01:17 +01:00
Jeremie Laval
a221409ade
Use .NET 4.5 implementation of Task's WhenAll/WhenAny for TaskFactory's ContinueWhenAll/ContinueWhenAny
...
The diff noise in Task.cs is just moving WhenAllCore and WhenAnyCore outside of their NET_4_5 region
2012-04-10 16:37:25 +01:00
Marek Safar
35ca4a994f
Implement more Task 4.5 members
2012-04-05 11:21:42 +01:00
Marek Safar
dc9110963d
Don't allocate TaskActionInvoker for TaskCompletionSource
2011-10-26 11:48:47 +01:00
Marek Safar
596a6c5542
Implement ContinueWhenAny/ContinueWhenAll with less temporary tasks
2011-10-21 16:26:11 +01:00
Marek Safar
adb5835775
Create Task continuation with less intermediate delegates
2011-10-21 10:00:53 +01:00