A
A
aki98132016-11-20 22:38:19
Browsers
aki9813, 2016-11-20 22:38:19

Long connection to the Tor network. Synchronization over time did What's the problem?

it takes a very long time, maybe the whole problem is that I am in Kazakhstan?cbc69180b59546e58b9c91080232d6a7.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Neron, 2016-11-21
Lordov @Nekto_Habr

It happens, it goes away on its own.

D
Dmitry Pavlov, 2017-02-28
@dmitry_pavlov

For example, like this (by calling subqueries in parallel):

$.get( "https://swapi.co/api/people", function( people ) {
  
  var deferredSubRequests = [];
  
  $.each(people.results, function( i, person ) {
    console.log(i, person.name);
    deferredSubRequests.push($.get(person.homeworld));
  });
  
  $.when(deferredSubRequests).then(function(results) {
    console.log('DONE!');
    $.each(results, function( j, planetResult ) {
    	//var ss = result.promise.resolve();
    	planetResult.done(function(planet){console.log(j, planet.name);});
    });
   });
 
});

You can run this code in jsfiddle .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question