batch.stop
Stop collecting tasks and flush the queues.
queues.batch.stop()
batch.start and batch.stop are used to enqueue many tasks without immediately flushing them. Batching tasks can help improve performance. Read batch.start for more information.
batch.start increments an internal batchStartCounter
. batch.stop decrements
it. Once the counter is 0, the notifyQueue and subsequent queues will be flushed.
queues.batch.start();
queues.batch.start();
queues.notifyQueue( console.log, console, [ "notify" ] );
queues.deriveQueue( console.log, console, [ "derive" ] );
queues.mutateQueue( console.log, console, [ "mutate" ] );
queues.batch.stop();
queues.batch.stop();
// Logs:
// notify
// derive
// mutate