From 487721e718c8b98d6580e0d6bf35e833381f673d 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` (cherry picked from commit 49b65698483fc228935f9dfc55d3c501a91829c0) --- 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 d65e42ade90..31b5e126b53 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