Data dodania Pytanie
2018-02-16 23:02 Graph API POST request to scrape fails intermittently »
My organization runs a news site that requests that Facebook scrape our content via our publishing process. This request is sent to the graph API via ...
(0) odpowiedzi
2018-02-16 15:02 Chrome debugger - parameters in async functions called from template »
I my template in angular I use following component: <building-selection (done)="sendToBackend($event)" > </building-selection&g...
(1) odpowiedzi
2018-02-08 14:02 Handling multiple exceptions from async parallel tasks »
Problem Several tasks are run in parallel, and all, none, or any of them might throw exceptions. When all the tasks have finalized, all the exception...
(1) odpowiedzi
2018-02-07 19:02 Trying to understand Await/Async, is this a correct conversion? »
So I am trying to rewrite the following callback function using the async/await pattern in node 8.9.4. Do I have it right or should it be rewritten f...
(1) odpowiedzi
2018-02-07 12:02 Wait for all different promise to finish nodejs (async await) »
I am currently waiting for all the promise to finish sequentially like this: (async() => { let profile = await profileHelper.getUserData(usernam...
(3) odpowiedzi
2018-02-06 21:02 AWS Lambda function that executes 5000+ promises to AWS SQS is extremely unreliable »
I'm writing a Node AWS Lambda function that queries around 5,000 items from my DB and sends them via messages into an AWS SQS queue. My local environ...
(1) odpowiedzi
2018-02-04 09:02 Why doesn't this deadlock in ASP.NET Core Web API? »
I read Stephen Cleary's post Don't Block on Async Code, so I created an ASP.NET Core Web API project: class AsyncTest { public async Task<stri...
(2) odpowiedzi
2018-02-04 01:02 React - Async background API calls »
Our team is working on a webapp / game where we want to make an API call every 8 seconds if a condition is true. This process is triggered by a butto...
(1) odpowiedzi
2018-02-02 16:02 Best way to do async work in order to return fast response »
I'm working on a REST API on ASP.NET. I want to know which is the best way to do a background work indepentently of sending the response to the client...
(2) odpowiedzi
2018-01-27 11:01 Is there any C# GetAwaiter equivalent in NodeJS »
I have this code: async function test() { var mongo = await MongoClient.connect(connectionString); var db = await mongo.db(databaseName); ...
(1) odpowiedzi
2018-01-22 06:01 JS: How to test for async function support »
I was wondering if it was even possible to test for async function support in JS. try { async () => {} } catch (err) { // No support } T...
(1) odpowiedzi
2018-01-13 18:01 Return from async function in hapi route »
Using hapi v17 i have a route { method: 'GET', path: '/redirectEbay', handler : registerController.ebayRedirect ...
(1) odpowiedzi
2018-01-12 14:01 Async callback function in jquery .done() not executing »
Why does giving an async function as a callback function for a jQuery deferred.done() not work? i.e. Why does jqueryObj.fadeTo("slow", 1) .promis...
(3) odpowiedzi
2018-01-12 03:01 What is the Operator Precedence of Await? »
In Javascript certain operators are processed before others: 1 + 2 * 3 // 1 + (2 * 3) // 7 because * has higher precedence than + 1 === 0 + 1 // 1 =...
(1) odpowiedzi
2018-01-10 23:01 How to call async await in JS such that after a certain time it fetches again? »
I have an async await as below where I am just fetching some JSON data. It is fetching ok. However, if you look in the console, you will notice that i...
(1) odpowiedzi
2018-01-08 05:01 Retrieving data sequentially from firebase database using async / await not working »
I have a react.js component where I intend to pull data from two different nodes in firebase sequentially. Here's the code. But it's not working: asy...
(1) odpowiedzi
2018-01-04 13:01 CA1001 implement IDisposable on async method »
Consider following code: public class Test { public async Task Do() { await Task.Delay(200); using (var disposable = new Dis...
(2) odpowiedzi
2017-12-29 10:12 Python: what are the advantages of async over threads? »
I've had a hard time trying to understand how and why async functionality works in python and I am still not sure I understand everything correctly (e...
(2) odpowiedzi
2017-12-27 11:12 IFormFile gets disposed while doing async operation »
I have a ASP.Net Core 2.0 webapi code that looks like following public class TestController : Controller { private readonly ISampleRepository _sa...
(1) odpowiedzi
2017-12-24 22:12 c# HttpClient PostAsync with async and await not working »
I am running into a deadlock situation when trying to post to WebApi 2 from WebApi 1 using HttpClient PostAsync and using async and await. Below is W...
(1) odpowiedzi
2017-12-22 18:12 MVC async method in constructor controller »
I'm trying to make dynamic menu (stored in DB), that is showing on all web app pages. Using Google I found that it is better to make menu view as a pa...
(2) odpowiedzi
2017-12-22 11:12 Sending 5000 messages in async way in C# »
I have to send 10000 messages. At the moment, it happens synchronously and takes up to 20 minutes to send them all. // sending messages in a sync way...
(1) odpowiedzi
2017-12-22 09:12 What exactly happens call async method without await keyword? »
I have a web server and there is a periodic job merges and send records (lots of request logs). Task.Run(() => { while (true) { t...
(2) odpowiedzi
2017-12-22 02:12 What would be the right approach to use await instead of Promises? »
I have being using Promises for a long time, and they are always the "thing" that I use to control the workflow of my programs. Example: Promise .r...
(1) odpowiedzi
2017-12-21 17:12 Nested Async/Await Nodejs »
Cannot seem to figure out why this is not working for me. I have a parent function that performs an AWAIT on a child load process... the LOAD process ...
(1) odpowiedzi
2017-12-19 11:12 WebApi Handling exceptions in delegating handlers + ExceptionLoggers »
I've got a .NET WebApi project that adds two subclasses of DelegatingHandler in the pipeline - an outer handler that handles request/response logging,...
(0) odpowiedzi
2017-12-18 00:12 Loading data into a Reactive Native FlatList »
I fully admit that I'm pretty new to Reactive Native at this point so I anticipate this being an easy answer and a potentially stupid question :) I...
(1) odpowiedzi
2017-12-13 15:12 Why does this JavaScript async/await code not behave as expected? »
I've tried reading guides and tutorials to async/await, but I can't seem to find this addressed anywhere. Here is the code in question: var...
(4) odpowiedzi
2017-12-10 18:12 Is an IOCP a thread that is running while the I/O is taking place or after? »
I'm trying to understand I/O Completion Ports and specifically how they relate to using async-await for I/O. The infamous article There is No Thread...
(2) odpowiedzi
2017-12-08 16:12 Is it OK to return from an async method before the final await? »
I have a web page (aspx) that calls an async method in a class. The async method looks something like this: public async Task<MyThing> GetMyTh...
(1) odpowiedzi
2017-12-05 08:12 How to get returned value without await opeartor »
I need to get the returned value without await operator(in below sample I need to get the "hello world" in var y without await operator). Because one ...
(3) odpowiedzi
2017-12-05 08:12 How can I stop execution of an outer function within a callback »
Lets imagine I have a scenario like this: async function some_func() { await some_query.catch(async (e) => { await some_error_code() }) ...
(2) odpowiedzi
2017-12-04 14:12 How to make sure a task is started and safely start it if not? »
I get an IEnumerable<Task> tasks from somewhere that I do not control. I don't know if the tasks are manually created using new Task, Task.Run, ...
(1) odpowiedzi
2017-12-04 00:12 Call chain for async/await ... await the awaitable or return the awaitable? »
Given an async method: public async Task<int> InnerAsync() { await Task.Delay(1000); return 123; } And calling it through an intermed...
(1) odpowiedzi
2017-12-02 13:12 C# async/await progress reporting is not in expected order »
I am experimenting with async/await and progress reporting and therefore have written an async file copy method that reports progress after every copi...
(1) odpowiedzi