Timeline for C# async method execute base on the first completed task
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 29, 2015 at 12:15 | comment | added | Stephen Cleary | @OptimusFrog: You have to be careful what you're cancelling. Passing a CancellationToken to WaitAny will only cancel the wait, not your readFrom* operations. You need to pass a CancellationToken into readFrom*. | |
| Apr 29, 2015 at 4:22 | comment | added | Ferry To | After reading the API doc on MSDN, I can't find a method signature of WhenAny() that takes a CancellationToken as parameter, may you point me how to make use of a CancellationToken with WhenAny()? | |
| Apr 27, 2015 at 16:10 | comment | added | Stephen Cleary | You shouldn't need to use WaitAny. | |
| Apr 27, 2015 at 15:09 | comment | added | Ferry To | my program did read values on demand by an operator pressing a button in control room, and yes I think I need the CancellationToken, but it seems I have to use WaitAny() instead of WhenAny()? | |
| Apr 27, 2015 at 13:52 | history | answered | Stephen Cleary | CC BY-SA 3.0 |