Top "Async-await" questions

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

Where do I mark a lambda expression async?

I've got this code: private async void ContextMenuForGroupRightTapped(object sender, RightTappedRoutedEventArgs args) { CheckBox ckbx = null; if (sender is CheckBox) { ckbx = …

c# lambda resharper windows-store-apps async-await
Using filesystem in node.js with async / await

I would like to use async/await with some filesystem operations. Normally async/await works fine because I use babel-plugin-syntax-async-functions. …

javascript node.js async-await fs
Is Task.Result the same as .GetAwaiter.GetResult()?

I was recently reading some code that uses a lot of async methods, but then sometimes needs to execute them …

c# async-await
Nesting await in Parallel.ForEach

In a metro app, I need to execute a number of WCF calls. There are a significant number of calls …

c# wcf async-await task-parallel-library parallel.foreach
How can I use Async with ForEach?

Is it possible to use Async when using ForEach? Below is the code I am trying: using (DataContext db = new …

c# async-await
async at console app in C#?

I have this simple code : public static async Task<int> SumTwoOperationsAsync() { var firstTask = GetOperationOneAsync(); var secondTask = GetOperationTwoAsync(); return …

c# .net-4.5 async-await c#-5.0
Correct async function export in node.js

I had my custom module with following code: module.exports.PrintNearestStore = async function PrintNearestStore(session, lat, lon) { ... } It worked fine …

javascript node.js async-await
Synchronously waiting for an async operation, and why does Wait() freeze the program here

Preface: I'm looking for an explanation, not just a solution. I already know the solution. Despite having spent several days …

c# .net task-parallel-library windows-store-apps async-await
Async always WaitingForActivation

I am trying to figure out what the async & await keywords are all about, however the output isn't what …

c# .net asynchronous async-await
When should I use Async Controllers in ASP.NET MVC?

I have some concerns using async actions in ASP.NET MVC. When does it improve performance of my apps, and …

c# asp.net asp.net-mvc-4 asynchronous async-await