Questions tagged as 'assincronismo'

1
answer

Problem with return

I'm having problem with return since node is all asynchronous. var myFUNC = function(A, B) { A.every(function(AA) { return (AA === B); }); return true; }; if(!myFUNC(...)) { .... } Of course t...
asked by 02.11.2015 / 17:24
2
answers

Chaining of asynchronous requests

I need to do asynchronous serial data processing (sending data to a REST server), and only at the end of all requests do I need to perform another function. How can I control this flow if each request is asynchronous? What I need is someth...
asked by 03.09.2015 / 18:45
2
answers

How to perform asynchronous request using JSON?

Scenario, I have a data request using JSON but would like this request to be made outside of the main thread of the app so that it does not crash and that the user can perform other operations while the data is downloaded. In the code below I...
asked by 29.10.2014 / 15:44
2
answers

Calling an asynchronous and synchronous method

I have a synchronous method, in it I call another method of another controller that would have to be executed asynchronously. I call this another method this way: Task.Run(() => _notificacaoController.NotificacaoIosTodos(titulo, c...
asked by 10.05.2017 / 16:43
2
answers

Use promise in a Web Worker

To use Web Workers for certain things, can you use a promise for when it's done? Type like this WR.postMessage({taskID: 'g_b_i'}).then(function(nonce){ console.log(dT(), 'Sending parameter nonce: ', nonce); }); nonce w...
asked by 16.04.2015 / 01:48
2
answers

How to set data correctly in Lisview?

Well, I'm getting a lot of asynchronous request on Android. I am requesting a list of states in JSON , via OkHttp , and transforming into ArrayList states to be able to set states in ListView . However, in all the ways I...
asked by 18.10.2016 / 03:01
2
answers

Asynchronous Process in Ruby on Rails

I have a process that makes a match between the items [books, movies, songs and games] of a certain user on Facebook with the items registered in my database. The problem is that the whole process takes around 18 ~ 25 seconds and I would not w...
asked by 01.06.2014 / 02:59
1
answer

Json request for slow scrolling tableview

I have an application that returns a json to a tableview, however, every time I roll the cells it kind of chokes, I've already been told I'd have to leave the asynchronous json return function ... Does anyone know how to treat this in Swift?...
asked by 04.11.2015 / 20:54
1
answer

Am I doing Throw correctly?

I'm typing a FireOut DAO that performs and handles Auth, Database, and Storage. But Firebase issues some exceptions depending on the scenario, password with less than 6 digits, email already registered, etc. I'm trying to throw these exceptio...
asked by 19.02.2018 / 23:20
1
answer

Wait for the results of asynchronous methods of Firebase

I'm often having problems with several code snippets where I need to call asynchronous methods from the Firebase Database library. The point is that these methods often do not return their results before the View is loaded, and in some cases,...
asked by 17.02.2018 / 23:55