Linked Questions
10 questions linked to/from Do the new C# 5.0 'async' and 'await' keywords use multiple cores?
54 votes
1 answer
23k views
Async/await and parallel in C# [closed]
When should I use async/await and when should I use parallel.foreach in C#? Are parallel and async/await serve the same purpose? What are the differences in them?
23 votes
4 answers
2k views
Different behavior async/await in almost the same methods
Let's say I have two async methods public async static Task RunAsync1() { await Task.Delay(2000); await Task.Delay(2000); } and public async static Task RunAsync2() { var t1 = Task.Delay(...
5 votes
2 answers
7k views
WinRT: DataReader.LoadAsync Exception with StreamSocket TCP
I'm programming a client app on WinRT in C# which connects to several servers by TCP. For the TCP connection I use StreamSocket. The Input and Output Strings are then wrapped in a DataWriter and a ...
3 votes
3 answers
2k views
Merging .NET 4.0 Tasks/continuations of different types
I'm currently implementing a System.Web.Http.IActionFilter which calls an internal service to determine whether the current request can continue. The problem I'm having is returning a Task<T1> ...
1 vote
3 answers
2k views
Async is not working in large ASP.NET Application but in new application
I have an existing large ASP.NET (ASP.NET Web Forms + MVC support) Application and trying to implement async programming on project. For that I created a completely new POC by selecting ASP.NET ...
6 votes
2 answers
572 views
Does let!/do! always run the async object in a new thread?
From the wikibook on F# there is a small section where it says: What does let! do?# let! runs an async<'a> object on its own thread, then it immediately releases the current thread ...
2 votes
2 answers
408 views
Async Await Infinite Regression [closed]
You can only await an async method. However that async method itself needs to have an await statement inside it itself. Doesn't this lead to an infinite regression?
2 votes
1 answer
1k views
using dependency properties along with async ctp
I have created some sample ViewModel to test usage of DPs with asyncCtp: public class SampleVm : DependencyObject { public static readonly DependencyProperty SampleDependencyPropertyProperty = ...
0 votes
1 answer
167 views
Difference between await function call and await Task
In the following example there are two ways of calling code enter link description here Task<Egg> taskEggs = FryEggsAsync(2); Egg eggs = await taskEggs; Such code runs parallel, ...
1 vote
2 answers
68 views
Read method crashes after receiving a few packets
My application sends the users credentials to the server, if they are correct the server send a packet telling the client their credentials are wrong or right. After a couple of dummy tests, my client ...