Questions tagged [asynchronous]

Asynchronous programming is a strategy for deferring operations with high latency or low priority, usually in an attempt to improve performance, responsiveness, and / or composability of software. Such strategies are usually employed using some combination of event-driven programming and callbacks, and optionally making use of concurrency through coroutines and / or threads.

I have a React component called AddUser and its parent component AddUsers. There's a mechanism within AddUsers that allows N users to be added at one time, by instantiating N AddUser components.
The ...

I am trying to take the values from room database, populate ArrayList which I can eventually use it for my Spinner. Problem is ArrayList is populated inside the loop. But the moment it comes out, the ...

The below code is working perfect, except for the marker label texts... The array contains the actual address and the load order number. The markers are placed correctly on the map, but all the label ...

I am currently writing a node script to move simple MongoDB tables to MySQL. Currently the data is moved entirely, but I cannot figure out how to end the connection, and therefore script, correctly.
...

Right now I am trying to implement authentication in my hobby project. You may find the code on my GitHub repo. I got the inspiration for my authentication from this Code Sandbox.
I have been trying ...

Following Situation:
I communicate remotely to a device with TCP/IP. I send a command to device. The device executes the command and sends me asynchronously the result messages. The time between the ...

Recently I appeared for an interview where the interviewer asked me: How does a browser understand that a particular statement is asynchronous ?
I am aware of the asynchronous handling of the browser ...

I'm using C# Web-Api with Owin, hosted as a Windows Service, to expose card reader utility.
I'm trying to use Server Sent Events. The client sends a request to open the stream, and I want to do logic ...

I am having a problem in executing API calls using aysnc and await. I am using fetch method to call a Spring Boot service which returns a JSON string after uploading a file. Before getting the status ...

In my nodejs/express rest api im using the service/controller pattern.
In the service im calling to mongodb. I want the error handling/throwing to happen in the service, but i dont want co call User....

I have a scenario where I need to invoke multiple WCF asynchronous calls that can proceed independently of each other, with each one having its own continuation for updating the UI.
Lets say I have a ...

I have a function that takes a url and data, gets json from an API, creates an object with data in it and returns it. I'm trying to call this function to get different data with different urls, but ...

I'm implementing a Todo Application in Flutter. I need to merge a double query in client, in order to perform an OR request in Firestore.
One hand, I have the following code that performs the double ...

I would like to manage background computations straight from the console using a supervisor object. I want to create the supervisor object with start method which will instantiate a few other objects. ...

I have class called JsonHandler with async task to connect to api and get json content. It's used in some activities but i cannot show alert dialog "Loading... please wait" Can you help me with this?
...

I have an async function that generates a new token if a user's token expires. I copied and pasted the async function code into this project and the class and constructor were already built.
I want ...

I have multiple async tasks running in spring boot.These tasks read an excel file and insert all that data into the database.
The task is started when a request is made from the front-end. The front-...

In node.js when one performs something that's async in nature, an async_id is generated for it. This id is accessible via the async_hooks API.
Since the ids are integers (64bit) is it possible that ...

I am trying to figure out how does asynchronous code work in Javascript. Now, I understand that there is actually one single thread in JS that executes jobs in a queue, and it can only start executing ...

I wonder how async call works when looping through html elements with jquery. I know that async call doesn't stop iterating when server call is being made. That means, script is immediately iterating ...

I want to call one Stored Procedure from java function asynchronously that means my function should not wait whether that Stored Procedure executed or not. It should simply call that Stored Procedure ...

I am trying to solve a problem I have and I am a bit stuck with how to do this.
I am currently posting to my PHP page via AJAX, and while I am waiting for the request to respond I am wanting to run a ...

I need to process every record from an input file asynchronously using batch concept. Example - say my input file has 100 records and my batch size is set to 10, I need to process the records in 10 ...

I am creating a web scraper that scrapes all of the movies coming out for the next year from this site (https://www.imdb.com/movies-coming-soon/) and it loops through an array of links that contain ...

I have a Node.js background task that I want to run, which will make multiple API calls. My end goal is to have a main asynchronous loop that, when complete, starts again. Each of the API calls are ...

I would like to start an asynchronous operation with the creation of an object and for it to run at intervals for the lifetime of the object. I have one implementation of how this might be done (see ...

I am learning Flutter, so I made a fun little News app with the news API. It has different tabs for different categories and it requests the data based on the keyword associated with each tab. However,...