Top "Async-await" questions

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

Regarding usage of Task.Start() , Task.Run() and Task.Factory.StartNew()

I just saw 3 routines regarding TPL usage which do the same job; here is the code: public static void Main() { …

c# .net async-await task-parallel-library
How do I await multiple promises in-parallel without 'fail-fast' behavior?

I'm using async/await to fire several api calls in parallel: async function foo(arr) { const results = await Promise.all(…

javascript asynchronous promise async-await
warning this call is not awaited, execution of the current method continues

Just got VS2012 and trying to get a handle on async. Let's say I've got an method that fetches some …

c# async-await
How to use RestSharp with async/await

I'm struggling to find a modern example of some asynchronous C# code that uses RestSharp with async and await. I …

c# .net asynchronous async-await restsharp
Using async-await on .net 4

I'm currently starting to create an application that would profit a lot from C# 5's async-await feature. But I'm not …

c# .net-4.0 async-ctp async-await c#-5.0
How to find which promises are unhandled in Node.js UnhandledPromiseRejectionWarning?

Node.js from version 7 has async/await syntactic sugar for handling promises and now in my code the following warning …

node.js promise async-await warnings unhandled-exception
ASP.NET Web API OperationCanceledException when browser cancels the request

When a user loads a page, it makes one or more ajax requests, which hit ASP.NET Web API 2 controllers. …

asp.net iis asp.net-web-api task-parallel-library async-await
Proper request with async/await in Node.JS

In my program I make async call for my function from another API module: var info = await api.MyRequest(value); …

node.js rest asynchronous request async-await
Explicitly use a Func<Task> for asynchronous lambda function when Action overload is available

Reading over this blog post on some of the gotchas of C#5's async/await. It mentions in Gotcha #4 something …

c# async-await c#-5.0 lambda
When would I use Task.Yield()?

I'm using async/await and Task a lot but have never been using Task.Yield() and to be honest even …

c# async-await