Top "Async-await" questions

This covers the asynchronous programming model supported by various programming languages, using the async and await keywords.

Making interface implementations async

I’m currently trying to make my application using some Async methods. All my IO is done through explicit implementations …

c# asynchronous async-await
Awaiting multiple Tasks with different results

I have 3 tasks: private async Task<Cat> FeedCat() {} private async Task<House> SellHouse() {} private async Task&…

c# .net async-await task-parallel-library .net-4.5
Any difference between await Promise.all() and multiple await?

Is there any difference between: const [result1, result2] = await Promise.all([task1(), task2()]); and const t1 = task1(); const t2 = task2(); …

javascript async-await
Why can't I use the 'await' operator within the body of a lock statement?

The await keyword in C# (.NET Async CTP) is not allowed from within a lock statement. From MSDN: An await …

c# .net async-await
Cannot implicitly convert type from Task<>

I am trying to master async method syntax in .NET 4.5. I thought I had understood the examples exactly however no …

c# async-await
How to write an async method with out parameter?

I want to write an async method with an out parameter, like this: public async void Method1() { int op; int …

c# async-await
Await a Async Void method call for unit testing

I have a method that looks like this: private async void DoStuff(long idToLookUp) { IOrder order = await orderService.LookUpIdAsync(idToLookUp); // …

c# .net unit-testing async-await
Parallel foreach with asynchronous lambda

I would like to handle a collection in parallel, but I'm having trouble implementing it and I'm therefore hoping for …

c# async-await task-parallel-library parallel.foreach
Await operator can only be used within an Async method

I'm trying to make a simple program to test the new .NET async functionality within Visual Studio 2012. I generally use …

c# .net build .net-4.5 async-await
Entity Framework Queryable async

I'm working on some some Web API stuff using Entity Framework 6 and one of my controller methods is a "Get …

c# entity-framework async-await