c# Programming Glossary: continuations
HttpClient.GetAsync(…) never returns when using await/async http://stackoverflow.com/questions/10343632/httpclient-getasync-never-returns-when-using-await-async Tasks API the code always seems to work when using only continuations. Here's some code which reproduces the problem drop this into.. ApiController summary Retrieves data using continuations summary protected Task string Continuations_GetSomeDataAsync..
Retry a task multiple times based on user input in case of an exception in task http://stackoverflow.com/questions/10490307/retry-a-task-multiple-times-based-on-user-input-in-case-of-an-exception-in-task _original.Result return tcs.Task With all the continuations you can see why an async version of Retry is so desirable. UPDATE..
UnobservedTaskException being throw but it is handled by a TaskScheduler.UnobservedTaskException handler and a continuations OnlyOnFaulted handler [duplicate] http://stackoverflow.com/questions/11831844/unobservedtaskexception-being-throw-but-it-is-handled-by-a-taskscheduler-unobser by a TaskScheduler.UnobservedTaskException handler and a continuations OnlyOnFaulted handler duplicate Possible Duplicate How to handle.. not valid for multi task continuations public static Task CreateHandledTask Action action return..
Does Scala have an equivalent to C# yield? http://stackoverflow.com/questions/1655738/does-scala-have-an-equivalent-to-c-sharp-yield its behavior is that of a coroutine. Scala's delimited continuations may allow one to define coroutines. Until then Scala lacks such..
When does Thread.CurrentThread.Join() make sense? http://stackoverflow.com/questions/17072576/when-does-thread-currentthread-join-make-sense classes is far nicer in many ways as you can easily attach continuations or always call Task.Wait if you truly need to block . share..
C# coding style - line length / wrapping lines [closed] http://stackoverflow.com/questions/2151836/c-sharp-coding-style-line-length-wrapping-lines Is there a generally accepted etiquette for using line continuations Why use this SomeMethod int someInt Object someObject String.. c# coding style share improve this question Line continuations are not used in C# since an explicit line terminator is required...
Task parallel library replacement for BackgroundWorker? http://stackoverflow.com/questions/3513432/task-parallel-library-replacement-for-backgroundworker parent child tasks uses the new cancellation API task continuations etc. I have an example on my blog showing the old BackgroundWorker..
Is it considered acceptable to not call Dispose() on a TPL Task object? http://stackoverflow.com/questions/3734280/is-it-considered-acceptable-to-not-call-dispose-on-a-tpl-task-object the task it's waiting on . If all you're doing is using continuations that event handle will never be allocated ... it's likely better..
How could the new async feature in c# 5.0 be implemented with call/cc? http://stackoverflow.com/questions/4070237/how-could-the-new-async-feature-in-c-sharp-5-0-be-implemented-with-call-cc ArchiveAsync document I know that some languages implement continuations natively via call with current continuation callcc but I don't..
How can SynchronizationContext.Current of the main thread become null in a Windows Forms application? http://stackoverflow.com/questions/4659257/how-can-synchronizationcontext-current-of-the-main-thread-become-null-in-a-windo then always reference that task scheduler when creating continuations. For example Task task Task.Factory.StartNew something .ContinueWith..
Memory barrier generators http://stackoverflow.com/questions/6581848/memory-barrier-generators include asynchronous delegates APM callbacks and Task continuations Setting and waiting on a signaling construct Anything that relies..
Distinction between iterator and enumerator http://stackoverflow.com/questions/716238/distinction-between-iterator-and-enumerator
C# 5 Async/Await - is it *concurrent*? http://stackoverflow.com/questions/7663101/c-sharp-5-async-await-is-it-concurrent aware I'm missing something Many thanks in advance. c# continuations async await share improve this question It is concurrent.. have a SynchronizationContext at all. In this situation continuations execute on threadpool threads. This is why Console app demos..
Is Async await keyword equivalent to a ContinueWith lambda? http://stackoverflow.com/questions/8767218/is-async-await-keyword-equivalent-to-a-continuewith-lambda success.Result Logged In Wrong password c# async await continuations async ctp share improve this question The general idea is..
|