Skip to main content
deleted 80 characters in body
Source Link
Matas Vaitkevicius
  • 61.9k
  • 37
  • 253
  • 278

I would assume you need to pass callback with request

Callback is the way to continue execution when you are programming in async.

Pseudo example:

function doAcync(callback) { //gets result callback(result); } function one() { doAcync(two); } function two(result) { doAcync(three); } function three(result) { // continue with your live } 

So if you want to continue with three it has to be passed in the chain of calls.

I would assume you need to pass callback with request

Callback is the way to continue execution when you are programming in async.

Pseudo example:

function doAcync(callback) { //gets result callback(result); } function one() { doAcync(two); } function two(result) { doAcync(three); } function three(result) { // continue with your live } 

So if you want to continue with three it has to be passed in the chain of calls.

I would assume you need to pass callback with request

Callback is the way to continue execution when you are programming in async.

Pseudo example:

function doAcync(callback) { //gets result callback(result); } function one() { doAcync(two); } function two(result) { doAcync(three); } function three(result) { // continue with your live } 
Source Link
Matas Vaitkevicius
  • 61.9k
  • 37
  • 253
  • 278

I would assume you need to pass callback with request

Callback is the way to continue execution when you are programming in async.

Pseudo example:

function doAcync(callback) { //gets result callback(result); } function one() { doAcync(two); } function two(result) { doAcync(three); } function three(result) { // continue with your live } 

So if you want to continue with three it has to be passed in the chain of calls.