next (target, method, args*) Objectpublic
Defined in packages/ember-metal/lib/run_loop.js:425
Schedules an item to run from within a separate run loop, after control has been returned to the system. This is equivalent to calling run.later with a wait time of 1ms. run.next(myContext, function() {
// code to be executed in the next run loop,
// which will be scheduled after the current one
});
Multiple operations scheduled with run.next will coalesce into the same later run loop, along w