Data dodania Pytanie
2017-11-17 01:11 ASP.Net: Call an async method in Page_Load »
I have this API client which has a send method used to post my object to a Web API service and return an object of type ReturnedResults. Now I need t...
(1) odpowiedzi
2017-11-14 13:11 Map Promise.all output with promises index »
I am using nodejs v8+ which supports default async await style of code. In my problem, I am trying to push all the promises into an array and then us...
(3) odpowiedzi
2017-11-14 12:11 When is the best place to use Task.Result instead of awaiting Task »
Whilst I've been using async code in .NET for a while, I've only recently started to research it and understand what's going on. I've just been going...
(4) odpowiedzi
2017-11-12 18:11 How does a C# compiler know when to cut off an async method? »
I'm trying to understand some more about async/await and particularly how the compiler knows to "pause" at an async method and await without spawning ...
(2) odpowiedzi
2017-11-03 12:11 How to use Array.prototype.filter with async? »
Background I am trying to filter an array of objects. Before I filter, I need to convert them to some format, and this operation is asynchronous. ...
(1) odpowiedzi
2017-10-30 16:10 Why does Async Await work with React setState? »
I have been using async await with babel in my ReactJS project. I discovered a convenient use with React setState that I would just like to understand...
(4) odpowiedzi
2017-10-24 09:10 Async function never returns while waiting for a nested Promise to fulfill »
In the below code there is an outer function and an inner function. outer is supposed to await inner and return when it completes. inner returns a Pro...
(1) odpowiedzi
2017-10-23 14:10 Waiting for more than one concurrent await operation »
How can I change the following code so that both async operations are triggered and given an opportunity to run concurrently? const value1 = await ge...
(2) odpowiedzi
2017-10-16 13:10 misleading “Calling an asynchronous function without callback is deprecated” warning »
NodeJS gives me a warning (node:32600) [DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated. when I r...
(1) odpowiedzi
2017-10-15 23:10 How to refactor this function with async/await? »
I'm quite new to async/await and would like to know, what is the best way to refactor the below code with async/await? export const createUser = (val...
(2) odpowiedzi
2017-10-15 21:10 Test asynchronous async await JavaScript function »
I've written an asynchronous JavaScript function though do not seem to be getting the returned value I expect. Could somebody explain if I'm misunder...
(2) odpowiedzi
2017-10-10 11:10 Writing an asynchronous process that can be awaited »
I have been researching how to convert my (synchronous) algorithms into asynchronous ones. (TAP) First, just to be clear, this question is not about "...
(1) odpowiedzi
2017-10-06 15:10 Strange deadlock situation in ASP.NET Core Controller »
In my ASP.NET Core application I have a a seemingly very simple action. It awaits some value from an asynchronous method and then returns it as an OK-...
(1) odpowiedzi
2017-10-01 20:10 How can I use async/await at the top level? »
I have been going over async/await and after going over several articles, I decided to test things myself. However, I can't seem to wrap my head aroun...
(1) odpowiedzi
2017-09-28 15:09 How to access field result from returned controller in MVC .net core »
Whilst my controller functions correctly, I am getting a syntax error in my unit test on the "Assert" line for .Name IAction result does not conta...
(1) odpowiedzi
2017-09-28 12:09 Weird stack trace growth with async/await and TaskCompletionSource »
The following C# code: class Program { static readonly List<TaskCompletionSource<bool>> buffer = new List<TaskCom...
(1) odpowiedzi
2017-09-27 08:09 Can't display result of API request with React »
I just started using React and I'm astounded at how incredibly difficult it is to do literally the most basic thing possible. All I want to do is make...
(2) odpowiedzi
2017-09-24 16:09 Calling Assert.Inconclusive() in an async unit test is reported as a fail »
I have a series of unit tests that connect to an Azure Storage emulator. In Setup my code checks if there is something listening on the emulator's po...
(2) odpowiedzi
2017-09-15 19:09 Can't get result from task list »
I have this async function that returns a Task public async Task<SettingModel> GetSetting(string key) { var rootPath = _hostingEnvironment....
(1) odpowiedzi
2017-09-15 10:09 What is the most elegant way to load multiple variables asynchronously in parallel in c# »
This is best illustrated with an example. Say I want to load several records from a database at the beginning of a web request. I want to pull in all...
(2) odpowiedzi
2017-09-14 07:09 Clean up after generating function or async generating function »
How do I clean up after a generating function has been exited. The problem I am having is I made a little utility to read-lines from a file using Asyn...
(1) odpowiedzi
2017-09-06 14:09 Setting a property of View Model inside AfterMap method (AutoMapper) asynchronously »
In my database I have tables of tags and posts. There is many-to-many relation between them. In Tag entity I don't store number of how many times the ...
(1) odpowiedzi
2017-09-03 18:09 Asynchronous call in overrided function? »
This is the problem that I have. I am using SignalR and have a WebAPI in the same project and I have made a hub that looks like this: public class Te...
(0) odpowiedzi
2017-09-02 19:09 Nested Observable hangs on Wait() »
In a C# console application, using System.Reactive.Linq, I'm trying to make an observable, where each item is the string result of some processing by ...
(3) odpowiedzi
2017-08-23 21:08 Promisify chrome API using Bluebird »
I'm trying to promisify chrome.storage.sync.get using Bluebird.js. I see that all the examples on the bluebird http://bluebirdjs.com/docs/working-with...
(1) odpowiedzi
2017-08-22 05:08 Creating a programmatic login for web api »
I am trying to login using the HttpContext.SignInAsync inside a controller in .net core 2.0 The following is the same controller I used in .net core 1...
(2) odpowiedzi
2017-08-21 09:08 How does async-await work under the hood? »
I recently discussed how async-await works and I want to know if I got it correct. Does async-await work by switching the thread's ESP stack pointer...
(0) odpowiedzi
2017-08-18 23:08 How to await for a function or a database query? And then process results and finally send them back »
I have this scenario: app.get('/', async function (request, response) { await foo(DbConnection).then((result) => console.log("response ready...
(1) odpowiedzi
2017-08-18 20:08 Repeatedly prompt user until resolved using nodeJS async-await »
I try repeteadly asking question to user until they gave the correct answer using this code. The problem is, it won't resolve if the user doesn't ga...
(2) odpowiedzi
2017-08-18 13:08 What deos ConfigureAwait do? ASP.NET Web API 2 »
I am working on ASP.NET Web API 2 Application. In the application we are using for every async request: ConfigureAwait(false); I cannot really unde...
(1) odpowiedzi
2017-08-11 14:08 Why nothing is printed on the console? »
I create 2 methods that print x and y 100 times. I want them to run concurrent and I expect the output to be xxxxyxyxyyyxyyxyx... sthg like that. It ...
(3) odpowiedzi
2017-08-11 03:08 Where to use Task.Run if using a library does not support async await »
I have an application which sends a message over the network, and I would like to perform other work while waiting for the message to be sent and resp...
(2) odpowiedzi
2017-08-07 20:08 Calling Facebook Messenger API in a synchronous fashion »
I'm using the Facebook Messenger API to create a very basic chatbot. I want to be able to send a series of messages in individual bubbles. However, wh...
(1) odpowiedzi
2017-08-06 12:08 Why is the culture kept after ConfigureAwait(false) »
I have the following async code: // Main system culture is English here Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("es"); Writ...
(2) odpowiedzi
2017-08-03 10:08 How is async/await working in serial and parallel? »
I have two async functions. Both of them are waiting for two 3 seconds function calls. But the second one is faster than the first. I think the faster...
(3) odpowiedzi