170
rated 0 times
[
171]
[
1]
/ answers: 1 / hits: 9020
/ 9 Years ago, sun, september 27, 2015, 12:00:00
if function returns error, further code is no longer executing. I need to retry this function until success. How can I do it?
... // API request...
function(error, something) {
if (!error) {
something = true;
// Etc...
}
else {
// Code to try again.
}
}
More From » node.js