From 49b65698483fc228935f9dfc55d3c501a91829c0 Mon Sep 17 00:00:00 2001 From: bekzod Date: Thu, 13 Jun 2019 13:04:29 +0500 Subject: [PATCH] [DOC] fix docs for `schedule` --- packages/@ember/runloop/index.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/@ember/runloop/index.js b/packages/@ember/runloop/index.js index 78071ac120a..eaa5b1b08a3 100644 --- a/packages/@ember/runloop/index.js +++ b/packages/@ember/runloop/index.js @@ -307,15 +307,20 @@ export function end() { ```javascript import { schedule } from '@ember/runloop'; + schedule('afterRender', this, function() { + // this will be executed in the 'afterRender' queue + console.log('scheduled on afterRender queue'); + }); + schedule('actions', this, function() { - // this will be executed in the 'actions' queue, after bindings have synced. + // this will be executed in the 'actions' queue console.log('scheduled on actions queue'); }); // Note the functions will be run in order based on the run queues order. // Output would be: - // scheduled on sync queue // scheduled on actions queue + // scheduled on afterRender queue ``` @method schedule