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
Marek Safar
5b177dfc0a
Run async continuation without allocating temporary hoisting classes.
2013-01-03 18:40:01 +01:00
Jeremie Laval
5877a9423b
[corlib] Honor LazyCancellation flag
2012-09-24 12:28:25 +01:00
Larry Ewing
137a5c40cf
Rework exception handling in MemoryStream async methods
...
Return faulted tasks for runtime errors when using the MemoryStream
Async methods.
2012-09-14 13:27:54 -05:00
Jeremie Laval
12e16734dc
Change missing Task parent reference
2012-04-16 14:10:13 +01:00
Jeremie Laval
3fe545acdb
Change how parent is selected during Task creation and do not force continuation's parent as they are not necessarily the same as their ancestor
2012-04-16 12:38:00 +01:00
Jérémie Laval
e325ea3653
Fix Task AttachedToParent behavior. Fix bug #2777 part1.
...
The problem was two folds. First, a parent task wasn't correctly waiting on the inner task continuations that were setup. Second, the way the Task parent field was re-used with a continuation collided with the parenting behavior of AttachedToParent (if the continuation was also created that way), the fix is to have two Task fields to differentiate between the two cases.
2012-02-03 03:56:18 +01:00
Marek Safar
772bff3244
Move TrySet method from TaskCompletionSource to Task, so AsyncTaskMethodBuilder can act as secondary TaskCompletionSource implementation
2011-10-27 11:03:38 +01:00
Marek Safar
adb5835775
Create Task continuation with less intermediate delegates
2011-10-21 10:00:53 +01:00
Marek Safar
9045d6616f
Throw cancellation exception when inspecting cancelled task's result
2011-10-11 18:47:16 +01:00
Jérémie Laval
df1e2d9a08
Move things around in Task and Task_T
2011-09-25 18:53:56 +02:00
Jérémie Laval
4b4c9c15d0
Mimic simpleAction usage in Task<T> to avoid creating an extra delegate in the simple case
2011-09-25 18:31:45 +02:00
Jérémie Laval
99646e4385
Fix build
2011-09-25 12:25:42 +02:00
Jérémie Laval
c20f5cab4b
Fix for #892
2011-09-25 11:23:42 +02:00
Jérémie Laval
e1ec7da0c4
Fix more argument checking for Task<T>
2011-09-25 11:23:42 +02:00
Jérémie Laval
c0338ec42f
Check that supplied function argument in a Task<T> ctor isn't null
2011-09-25 11:23:41 +02:00
Marek Safar
7f4dbcc68b
Add a few new async stream methods
2011-09-22 18:39:40 +01:00
Marek Safar
235a41e76d
Add more task awaiters and optimize existing ones by using new overloads
2011-09-20 19:04:13 +01:00
Marek Safar
d6b4a3cc3f
Move some async types to corlib
2011-09-19 15:01:21 +01:00
Marek Safar
fcfa09ce84
Make Task debugging more pleasant
2011-09-01 13:26:50 +01:00
Jérémie Laval
b21a860ddf
Implement proper ctor parameter checking
2011-08-06 21:47:28 +02:00
Marek Safar
640f8a298e
Rename Task<T> implementation file
2011-05-20 17:55:36 +01:00