Most voted "asynchronous" questions
Asynchronism refers to requests that are made independently, without synchronism, in which several requests can be sent in pararelo, where each reply returns when it is completed. Through this method it is possible to send as well as receive information in various formats such as JSON/XML/HTML and it is possible to do all this without the need to update the page.
Learn more…127 questions
Sort by count of
-
0
votes1
answer550
viewsQueues (queues) are useful in Node.js, which is asynchronous?
I know that in languages like PHP, queues (queues) are often used to perform more "heavy" actions, such as sending a series of emails and the like. Therefore, taking into account the asynchronous…
-
0
votes0
answers314
viewsDifference between Try-catch / then-catch
I just started the Promises study and came across the second dilemma: What’s the difference between using Ry and catch to handle errors and then and catch? What’s the best case for each of them?…
-
0
votes2
answers66
viewsPromise executed out of order, how to resolve?
I’m using the setTimeout function in the form of Promise, following the example of the Mozilla documentation. It turns out that the callback function is running before the end of the counter,…
-
0
votes1
answer306
viewsError in requests with aiohttp in asyncio
import time import urllib.request import asyncio import aiohttp URL = 'https://api.github.com/events' MAX_CLIENTS = 10 def fetch_sync(pid): print('Fetch sync process {} started'.format(pid)) start =…
-
0
votes2
answers929
viewsHow to use async/await in void return methods?
I have a problem in my application, where due to the large volume of processing, my Form lock. During my researches I found that a method async resolves this, however the functions performed on my…
-
0
votes1
answer782
viewsPython asyncio and threading
I’m studying the module asyncio of Python and there is the function run_coroutine_threadsafe which should be executed in a different thread than the event loop. Follow my script: #!usr/bin/python3 #…
-
0
votes1
answer78
viewsHow to work with asynchrony using Reactjs
I have the following code: requireUsers = () => { this.users = database.ref('users') this.users.on('value', snapshot => { this.state.users = snapshot.val()…
-
0
votes1
answer408
viewsAngular 7 / Typescript: grab value from within an onload function (upload files, grab content from a file)
I have the code below where I upload a file and want to get its contents in a variable. For this I use the function onload that gets me the result, which is the contents of the archive. But the…
-
0
votes1
answer526
viewsAsync/Await, where are you wrong?
const url = 'http://files.cod3r.com.br/curso-js/funcionarios.json' const axios = require('axios') const busca = () =>{ return new Promise((resolve, reject) =>{ try{ const funcionarios =…
-
0
votes1
answer82
viewsCompletablefuture - How to use?
In this situation, how should I work with Completablefuture? Using the method of Worldcupsocialapi implement the method CompletableFuture<Stream<String>> getMostPopularTeamNames(int…
-
0
votes1
answer175
viewsHow to expect the answer of an asynchronous function (Javascript/Cordova)?
I am developing a Cordova app and I am using the Sqlite plugin to make queries in the database. But as the functions of querys are asynchronous I have a problem to create a multidimensional array.…
javascript apache-cordova asynchronous cordova-pluginasked 5 years, 4 months ago Bruno Romualdo 1,890 -
0
votes1
answer126
viewsPromises.all are on an infinite loop
I have the following code segment: generateEpisode(result,programId).then((arrayBlocks) =>{ const promises = [] arrayBlocks.map((file,index) =>{ promises.push(normalizeFile(file,index)) });…
-
0
votes1
answer32
viewsnativescript-Vue - Adding an object to a push array after zeroing the object adds a zeroed object
I am developing an app with nativescript-Vue where I have an address registration. I have the following data: data() { return { isRegistering: true, enderecos: [{ id: 1, descricao: 'Casa',…
-
0
votes1
answer40
viewsWhat is the correct way to use AWS Iot.describeCertificate()? I cannot access the function asynchronously
I need to regain the status of an AWS-Iot-Core certificate using a Lambda function with Nodejs. According to the official documentation would need to use the function describeCertificate(). This is…
-
0
votes1
answer836
viewsDart/Flutter: how to use return of one method in another method? both invoked in the Class Constructor
I am using Dart/Flutter to develop an application and in it I have two Firebase Listeners methods, as shown below, and I would like to know how, in the constructor method, I trigger one of the…
-
0
votes0
answers13
viewsMultiple forms ajax(jquery) request running only 6 times
I am trying to send multiple forms with ajax and jquery but it is sending only 6 forms. Here is the code Jquery: $('form').each(function(){ var values = $(this).serialize(); $.ajax({…
-
0
votes0
answers17
viewsService of synchronizing images
I’m working on a project that synchronizes a folder, which contains several images (an absurd amount),. How it works ? The script sends the image data, its name and the relative path to the…
mysql filing-cabinet sql-update asynchronous updatingasked 3 years, 4 months ago William Cardoso 17 -
0
votes1
answer24
viewsReact - When I try to use data from the API using useEffect and useState, the application does not read the data in the component’s Return
I am consuming the Deezer API, using useEffect and useState in Reactjs to list a particular track (an example), but when using the .map, to render, the following error is returned: TypeError:…
-
0
votes0
answers9
viewsGoogle graphic image/ asynchronous request
I am mounting a report where I need to generate graphics through the google Chart api and generate the graphic image to insert into the report pdf. I can generate the graphic and I can generate the…
-
-1
votes2
answers668
viewsAsynchronous Call to a Restfull Webservice
I need to make a call to Webservice on Android, and with another class call it. At the end show on design the answer obtained by Ws. I already made the Webservice only that the part of…
-
-1
votes1
answer249
viewsWait for an event to be triggered to continue the C#
In the method RealizarPesquisa, when executing the line _WebBrowser.Navigate(), the event is triggered DocumentCompleted(), but this event it takes a while to be executed, so the method…
-
-1
votes1
answer63
viewsAsynchronous Communication
I intend to implement private asynchronous communication (in python) in order to test some cryptographic algorithms. The goal would be to have an Emmiter that sends the encrypted message and have a…
-
-1
votes1
answer799
viewsReturn database data in <label> with Javascript
I need to return the database data inside the inputs when selected the "Edit" button without the page being reloaded, however, when clicking on "Edit", I see that the action of the button changes,…
-
-1
votes1
answer129
viewsKendo ui Chart with multiple graphics - Assincrono
I have a screen that can have 1 or more graphics, so I’m using Kendo Ui Chart, however today this screen is synchronous, however I would like to switch to Asynchronous to get faster. I created the…
-
-1
votes1
answer75
viewsAsynchronous mysql queries in nodejs
Hello, I have a code in nodejs with mysql database. on one of the paths referring to the path(path) need to fetch all readings from 3 sensors (each sensor is a table) that have the path field equal…
-
-1
votes0
answers29
viewsProblem with asynchronous nodejs
I’m with a method in a class that calls the method another class and after that he gives a console.log of the return of this method. But this console.log is executed before the function call causing…
-
-2
votes0
answers8
viewsHow to pick up service object and send to another
I have the following problem. I’m working with nestJs and mongodb I need to store the data of an object, which arrives through an http POST, in two different Clicks from mongoDB. I’ve tested it…