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
-
2
votes1
answer571
viewsHow to call asynchronous method in class builder?
How do I call a method marked as async in a class builder?
-
2
votes2
answers59
viewsTaskcompletionsource<Tresult> without a type parameter
The class TaskCompletionSource<TResult> needs a type TResult. That way, when I need to use this class without having a return type (void), I have to do something like: var tcs = new…
-
2
votes2
answers5321
viewsCalling an asynchronous and synchronous method
I have a synchronous method, in it I call another method of another controller which would have to be executed asynchronous. I call this other method this way: Task.Run(() =>…
-
2
votes1
answer49
viewsInsertion, editing, removal and visualization of data
I have a CRUD in PHP developed with the MVC standard, all interaction with the database is performed with PDO, my challenge is, pass all data requests asynchronously using Ajax and Json. I have only…
-
2
votes1
answer353
viewsHandling synchronous and asynchronous request results
I have a function that triggers an ajax request for a route, see: var getInstituicoesSemUsuario = function(tipo) { var resultado = ""; $.ajax( { url: "{{path_for('instituicao.sem.responsavel')}}",…
-
2
votes1
answer257
viewsError trying asynchronous connection
I’m trying to do this way not to crash the application while waiting for the server to accept the connection. I saw that you can do with async and the await. But while trying to use them to wait for…
-
2
votes1
answer158
viewsHow to receive the result of an asynchronous function and move to Return?
I have the following code in nodejs in a lambda function in AWS that has been defined using serverless. The goal of this function is to read a URL that will return an XML, transform into JSON and…
-
2
votes2
answers795
viewsasynchronous foreach in javascript
Good morning! After breaking my head and not finding the solution, I came to ask Sopt’s friends. It is possible to create an asynchronous foreach? 'Cause the next thing, look at my code: async…
-
2
votes1
answer209
viewsWhen calling an asynchronous function, is it also necessary to note the calling function as "async"?
I have a question about asynchronous functions. I have the following function in my file models: const login = async (email, password) => { código qualquer aqui... }; And now I need to call this…
-
2
votes0
answers49
viewsWhat is the point of using await in asynchronous methods?
Studying on asynchronous/synchronous operations one point was not clear, which would be the use of the await in methods async as in this example found on MS’s own website. If the method…
-
2
votes1
answer72
viewsHow to convert a Promise-based function to callback in Javascript?
We can convert asynchronous functions that work with callback to work with Promises, as shown in the examples below: callback: const timeInMs = 1_000; function asyncCallback(timeMs, callback) {…
-
1
votes2
answers403
viewsAsynchronous Process in Ruby on Rails
I have a process that makes a match between the items[books, movies, music and games] of a particular user on Facebook with the items registered in my database. The problem is that the whole process…
-
1
votes2
answers272
viewsHow to perform asynchronous request using JSON?
Scenario, I have a data request using JSON but I would like this request to be performed outside the main thread of the app, so that it does not catch and that the user can perform other operations…
-
1
votes0
answers126
viewsFlush in asynchronous Servlet does not work
I am studying for web certification, and came across a problem while trying to make a chat using long pooling, but precisely in the article:…
-
1
votes2
answers227
viewsUse Promise in a Web Worker
TO using Web Workers for certain things, has how to use a Promise for when it finishes running? Kind of WR.postMessage({taskID: 'g_b_i'}).then(function(nonce){ console.log(dT(), 'Sending parameter…
-
1
votes2
answers768
viewsChaining of asynchronous requests
I need to do the asynchronous processing of data series (sending data to a REST server) and, only at the end of all requests, I need to perform another function. How can I control this flow if each…
-
1
votes1
answer103
viewsSocket Asynchronous C# receiving more than one message at a time
I am developing a C# Dll that works with Socket TCP Asynchronous for the development of some tools I am working on, the problem appears when the client receives many messages in a short period, in…
-
1
votes1
answer217
viewsSlowness with Fluentnhibernate
I am using Fluentnhibernate in a simple product registration application. The first time I run something that accesses the database (product query screen or register a product) the site is loading…
c# asp.net-mvc nhibernate fluent-nhibernate asynchronousasked 8 years, 8 months ago Vitor Ferreira 48 -
1
votes0
answers94
viewsDetect When user disconnects Socket TCP Asynchronous C#
I am developing an Asynchronous TCP server in C#, but not how to make my system detect that the user disconnected or was disconnected for some reason and perform a procedure for removing it from the…
-
1
votes1
answer38
viewsProblem with Return
I have a problem with return since the node is all asynchronous. var myFUNC = function(A, B) { A.every(function(AA) { return (AA === B); }); return true; }; if(!myFUNC(...)) { .... } obviously the…
-
1
votes1
answer99
viewsRequest for slow scrolling json for tableview
I have an application that returns a json to a tableview, but each time I roll the cells it kind of "chokes", I was told that I would have to leave the return function of the asynchronous json...…
-
1
votes2
answers102
viewsHow to set data correctly in Lisview?
Guys, I’m picking up a bit with asynchronous request on Android. I’m requesting a list of states on JSON, via OkHttp, and turn into a ArrayList states to be able to state ListView. However, in every…
-
1
votes2
answers243
viewsParallelism in Sql Server with C#
I am implementing async methods in C# and would like to know how to proceed when I arrive in Sql. When I open a connection to sql server, does it allow me to parallelize through just one connection?…
sql-server async asynchronous parallelismasked 7 years, 5 months ago Fernando Augusto De Almeida Ba 91 -
1
votes1
answer120
viewsAsynchronous Method Blocking Queue
I’m using MVC and so I approached asynchronous methods for Actions in Controllers in order not to block access to other pages of the site while a long-term process is taking place. However, I have…
-
1
votes1
answer2620
viewsHow to check if file exists (asynchronous)
In Node.JS, I use this method of fs to check if a file exists: const fs = require('fs'); // [...] if (fs.existsSync(path)) { /** Do stuff. */ } The question is, how can I do the same thing, but in a…
-
1
votes0
answers48
viewsPython and Asyncio
I am reading the documentation from the Python library and I am finding myself in difficulty to differentiate some terms that are often used, are: Task, Future. Both terms are used in similar ways…
-
1
votes2
answers86
viewsIs there a sure way not to wait for a lawsuit?
There is a safe way not to wait for a process on . NET? async Task DoFoo() { // ... GravarLog(); // ... } void GravarLog() { // ... } In the above code, my entire process will wait for the method to…
-
1
votes1
answer638
viewsDifference between task and shared_task in Celery?
I am implementing a time-consuming process in my Django application that needs to be run asynchronously to avoid timeout in the browser. For this, I chose to use the Celery to perform the…
-
1
votes1
answer1338
viewsAsynchronous module or handler completed while asynchronous operation was pending
I am trying to send an email asynchronously, without waiting for the return. However when I do not use the await I get an exception in return for action. Code: public Task MissaoAvaliada(string…
-
1
votes1
answer562
viewsWait for the results of asynchronous Firebase methods
I am frequently having problems in various code snippets where I need to call asynchronous methods from the Firebase Database library. The issue is that these methods often do not return their…
-
1
votes1
answer145
viewsAm I throwing correctly?
I’m doing like a Firebase DAO that performs and handles Auth, Database and Storage. But Firebase emits some exceptions depending on the scenario, password with less than 6 digits, email already…
-
1
votes1
answer46
viewsPK error during Asynchronous process of process
People I came across a situation where I was able to solve the problem but I would like to know more in depth how the UPDLOCK works. I had a situation that was basically like this inside a trial:…
-
1
votes0
answers46
viewsWhen we use async don’t you need to use callback?
I have the following function in V10.6 nodejs: #func-1 module.exports.funcOne = (event, context, callback) => { callback(null, { message: 'funcOne', event }); }; #func-2 module.exports.funcTwo =…
-
1
votes4
answers84
viewsHow to do a sequential for with nodejs version 8?
The nodejs version is: V8.10.0 I don’t know much about Ode. In this specific case I need the next iteration to be executed only after the previous iteration has been completed. Also, I need that…
-
1
votes2
answers421
viewsJavascript - error callback is not defined
I’m running a few asynchronous functions, who receive a callback, this callback gets as parameter a Boolean(true or false). When executing I have the error callback is not defined. [code] file -…
-
1
votes0
answers18
viewsAm I using the Asynchronous Task correctly?
Hello, I am doing a project in ASP.NET MVC and wanted to use an asynchronous task. In my stock I have: public async Task GerarItens(int codigo) { using (var dbTran =…
-
1
votes1
answer191
viewsTest of default in Angulajs application using Karma and Jasmine
Hello, I have an application in Angularjs and I wanted to ensure the quality of my code by doing unit tests and I am using Karma and Jasmine for this. After having had a certain difficulty to…
-
1
votes1
answer61
viewsTesting that all asynchronous functions have been terminated
Greetings I’m developing a synchronizer between two databases (SQL Server and MySQL) with the ElectronJS and the Node.JS and everything is working fine, but I would like it to perform…
-
1
votes0
answers56
viewsSELECT Asynchronous with PYTHON
Hello everyone, thank you!! I am trying to make some connections to a Mysql database in asynchronous mode where there is dispute and print on the screen the result that arrives first... but I am not…
-
1
votes1
answer82
views.then() in Async/Await
How I would transform the following function using async/await? const delay = () => new Promise(resolve => setTimetout(resolve, 1000); function umPorSegundo() { delay().then(() => {…
-
0
votes1
answer324
viewsLaravel 4.2 - Working with asynchronous tasks to generate reports . xlsx
Hello, I am working with an application in Laravel 4.2 and need that, when the user makes the request to generate a system report, a task is launched to generate the report, when this report is…
-
0
votes1
answer230
viewsOverwrite asynchronous variable
I need to have control of the number of simultaneous asynchronous ajax calls, but I can’t override the control variable that stores the number of these calls. Every time an asynchronous call is…
-
0
votes1
answer85
viewsOperation Async how to know when completed?
I have 2 methods Async what to make a Insert in a cloud database.. For internet reasons, there may be transaction failure to treat this problem, I am using Commit and RollBack, to ai blz. However, I…
-
0
votes1
answer340
viewsReturn of javascript asynchronous methods
I would like to save the return of an asynchronous function. The function is as follows: cb.tabela(serie).then(function(tabela) { console.log(tabela); }, function(err){ console.log(err); }); I wish…
-
0
votes2
answers2105
viewsHow to save return in Ajax request in a variable
I tried the next code, but it doesn’t work function getCategoria(id){ var categoria; $.ajax({ url: "../control/anuncio/index.php", data:{ method: 'get_categoria', id_categoria: id }, method: "post",…
-
0
votes1
answer29
viewsParallel execution
I have a process running in my application for control. This process runs within a timer. private void timer1_Tick(object sender, EventArgs e) { // bloco de instruções 1 // bloco de instruções 2 }…
-
0
votes0
answers81
viewsAsynchronous upload of videos
I have a page with several videos that comes from Youtube, that page takes a considerable time to load and on older computers, the page stays locked until everything is loaded. Is there any way to…
-
0
votes0
answers49
viewsBackground and asynchronous task in Ionic app
I am working with Ionic and create an app where save the current location of each user, however, the function that performs the search for the user coordinates runs when I start the lifecycle of the…
ionic apache-cordova mobile asynchronous background-servicesasked 5 years, 11 months ago Marco Alves 1 -
0
votes0
answers80
viewsRunning an asynchronous mode Python function with Celery
I have the function test() that takes a long time and I want to execute it asynchronously. I put the decorator of the Celery in the same as below: from celery import task @task def test(): (...)…
-
0
votes2
answers580
viewsjQuery/AJAX: a single form that can be submitted to different urls (POST or PUT)
I have the following scenario: I have a form that serves to register or change a teacher; To register I have a button at the top that calls the modal to do the POST; To change I have a button in…