Skip to content

Commit

Permalink
Merge pull request #20000 from cafreeman/cfreeman/expose-render-settled
Browse files Browse the repository at this point in the history
export `renderSettled` via `@ember/renderer` package
  • Loading branch information
chriskrycho authored Mar 2, 2022
2 parents 1ed27ae + 44bf7b7 commit 5ec7e24
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/@ember/renderer/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
@module @ember/renderer
@public
*/

/**
* @class Renderer
* @public
*/

/**
Returns a promise which will resolve when rendering has settled. Settled in
this context is defined as when all of the tags in use are "current" (e.g.
`renderers.every(r => r._isValid())`). When this is checked at the _end_ of
the run loop, this essentially guarantees that all rendering is completed.
@method renderSettled
@return {Promise<void>} a promise which fulfills when rendering has settled
@public
*/
export { renderSettled } from '@ember/-internals/glimmer';
1 change: 1 addition & 0 deletions tests/docs/expected.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ module.exports = {
'removeObjects',
'removeObserver',
'removeTestHelpers',
'renderSettled',
'reopen',
'reopenClass',
'replace',
Expand Down

0 comments on commit 5ec7e24

Please sign in to comment.