setInmediate
This commit is contained in:
1 parent
cff623114c
commit
28d290af1f
1 file changed
+1
-1
+1
-1
@@ -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()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user