setInmediate

This commit is contained in:
Luis Fernando Molina committed 2019-09-25 17:37:55 +02:00
1 parent cff623114c
commit 28d290af1f
1 file changed
+1 -1
+1 -1
View File
@@ -2760,7 +2760,7 @@
i++
if (i < candles.length) {
process.nextTick(loop)
setImmediate(loop) // This will execute the next loop in the next iteration of the NodeJs event loop allowing for other callbacks to be executed.
} else {
afterLoop()
}