Before, we used setTimeout(0, ctx) to schedule evaluation of a node as soon as possible.
But it would only mark node as dirty on the next millisecond and generate some unnecessary code.
setImmediate is a new API for this particular case that works faster, generates less code and occupies less RAM.
Before, we used
setTimeout(0, ctx)
to schedule evaluation of a node as soon as possible. But it would only mark node as dirty on the next millisecond and generate some unnecessary code.setImmediate
is a new API for this particular case that works faster, generates less code and occupies less RAM.