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-16 11:11 Javascript Run Async Code For Each Item Of For Loop With Promises »
I have a function that gets's an object passed into it, with key and data that is an array. I have to call the API to get additional information, whi...
(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-11 02:11 Is there difference between return with await or without »
I'm just thinking about we need to use the await operator, and what is the difference between the following two case. one public async updateOne(Mod...
(5) odpowiedzi
2017-11-05 11:11 Handling a stream of events based on timing in rxjs »
I have a process that sends me packets of data at intervals, and I need to manage that stream based on the timing of when the packets arrive and so on...
(2) odpowiedzi
2017-10-31 17:10 Is there such a thing as pointless Promise usage? »
Bear with me as a Java programmer, learning modern JavaScript on a new project. I get the concept of Promises for handling asynchronous operations but...
(4) odpowiedzi
2017-10-30 17:10 Process external HTTP request with CFTHREAD and return asynchronous response »
I have build an API where an external server can post JSON data to our ColdFusion Server. The ColdFusion Server then processes this data (loops over a...
(2) odpowiedzi
2017-10-28 01:10 Messages are being mixed up through Database.Log by multiple threads »
In my case it's a web API project in Visual Studio. When I'm testing, the API is called multiple times concurrently. I'm using the following to log t...
(1) odpowiedzi
2017-10-28 00:10 Handling multiple returns asynchronously in node.js »
I chose node.js for my task because it have official Google API client library and is natural to work with JSON. But I'm struggling with asynchronous ...
(2) 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-16 16:10 WebSocket communication blocking the UI »
I am currently working on a VNC Viewer using JavaScript. For the connection between my VNC Viewer and the server, I am using WebSocket communication. ...
(0) 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-16 10:10 The asynchronous method starts AsyncCallback in the current thread (main thread) »
There is a server of TcpListener class. It accepts incoming connections using the BeginAcceptTcpClient (AsyncCallback, Object) method. The code is wr...
(1) 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-15 09:10 Understanding javascript callbacks and formal parameters »
Here is an example of a question that I am slightly confused about. Function one calls function two, and passes it a callback that has a formal para...
(1) odpowiedzi
2017-10-13 16:10 main.async vs main.sync() vs global().async in Swift3 GCD »
Example A:- This cause App Crash. DispatchQueue.main.async { let url = URL(string: imageUrl) do { let data = ...
(3) 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-09 16:10 Child actors, futures and exceptions »
I'm currently working on an application with a signup process. This signup process will, at some point, communicate with external systems in an asynch...
(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-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-12 22:09 Async stacktraces in node »
I'm a little surprised I haven't been bitten by this more, but node errors created in a callback that is executed in an another tick do not have a san...
(0) odpowiedzi
2017-09-11 14:09 How to return cursor for reuse in with statement? »
I have the following code that has duplicated functionality. async def execute_select_query(self, query: str, keys: tuple) -> List[dict]: asyn...
(0) odpowiedzi
2017-09-09 02:09 recursive asynchronous JavaScript for nested data structure processing »
I'm looking to write a JavaScript function which takes the following data structure as an argument: let data = [ {value: 'a'}, {delay: [ {val...
(3) odpowiedzi
2017-09-07 12:09 Why do i need to use ConfigureAwait(false) in all of transitive closure? »
I am learning async/await and after I read this article Don't Block on Async Code and this Is async/await suitable for methods that are both IO and C...
(1) odpowiedzi
2017-09-06 16:09 JS How to execute stdio operations and Ui operations from same js file? »
I am trying to do two tasks in main.js of Electron app 1) Listen standard io ports and reply when app gets message. 2) Load UI (index.js) Part (1) or...
(0) odpowiedzi
2017-09-04 11:09 How to get users via API »
There are two models in my project: applicants and companies. Creating, authentificating and deleting users happens by the same API. So, I have a midd...
(2) odpowiedzi
2017-09-02 17:09 How to get event between Ajax.BeginForm and OnSuccess? »
I have a form, which I submit using Ajax.BeginForm. I want to do the following: Submitting the form with all the data (using Ajax.BeginForm) While w...
(2) odpowiedzi
2017-08-31 20:08 Sinatra using a websocket client to respond to a http request »
I am writing a web server that I would like to be RESTful, but the thing is that it has to interact with another server that communicates exclusively ...
(0) odpowiedzi
2017-08-28 15:08 JavaScript How do I overcome asynchronousness of JavaScript if a promise have already been used? »
It's not the first time I've had this problem but I always managed to find a workaround, which is fine I guess, but now I wanted to get some understan...
(5) odpowiedzi
2017-08-27 10:08 Passing Chrome content script parameters without asynchronous calls »
I have a content script (configured with document_start) which is injecting code into the current page, in order to overwrite/proxy existing objects. ...
(0) odpowiedzi
2017-08-26 11:08 Unable to update database using asynchronous method »
I am trying to update some values to my database using async task but I get this error: Values not inserted. Error: SQL logic error or missing dat...
(0) odpowiedzi
2017-08-25 22:08 How to surround a callback invocation with another piece of code in a best way? »
I have a simple, functional interface: public interface Callback<T> { void invoke(T param); } I make many asynchronous operations like: ...
(3) odpowiedzi
2017-08-25 09:08 async function - await not waiting for promise »
I'm trying to learn async-await. In this code - const myFun = () => { let state = false; setTimeout(() => {state = true}, 2000); ...
(1) odpowiedzi