Top "Async-await" questions

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

Async call with await in HttpClient never returns

I have a call I am making from inside a xaml-based, C# metro application on the Win8 CP; this call …

c# asynchronous async-await dotnet-httpclient
Await on a completed task same as task.Result?

I'm currently reading "Concurrency in C# Cookbook" by Stephen Cleary, and I noticed the following technique: var completedTask = await Task.…

c# asynchronous async-await task
Properly handling HttpClient exceptions within async / await

I was hoping somebody could enlighten me a little bit on an issue I am facing in regards to async/…

c# .net asynchronous windows-phone-8 async-await
How can I call an async method in Main?

public class test { public async Task Go() { await PrintAnswerToLife(); Console.WriteLine("done"); } public async Task PrintAnswerToLife() { int answer = await GetAnswerToLife(); …

c# asynchronous async-await task
How to await a list of tasks asynchronously using LINQ?

I have a list of tasks that I created like this: public async Task<IList<Foo>> …

c# linq async-await
In JavaScript, does using await inside a loop block the loop?

Take the following loop: for(var i=0; i<100; ++i){ let result = await some_slow_async_function(); do_something_with_…

javascript async-await
Pattern for calling WCF service using async/await

I generated a proxy with task-based operations. How should this service be invoked properly (disposing of the ServiceClient and the …

c# asp.net .net wcf async-await
If async-await doesn't create any additional threads, then how does it make applications responsive?

Time and time again, I see it said that using async-await doesn't create any additional threads. That doesn't make sense …

c# .net multithreading asynchronous async-await
async/await implicitly returns promise?

I read that async functions marked by the async keyword implicitly return a promise: async function getVal(){ return await doSomethingAync(); } …

javascript node.js async-await ecmascript-next
Is it an anti-pattern to use async/await inside of a new Promise() constructor?

I'm using the async.eachLimit function to control the maximum number of operations at a time. const { eachLimit } = require("async"); …

javascript node.js asynchronous async-await