Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Rename private runloop functions
We currently export a few private functions from `@ember/runloop` for packages like `@ember/test-helpers`. These functions are not public API, but need to be accessible for these core packages. Previously they were exposed on the private APIs of the global `run`, but now that we're getting rid of the the modules transform these are now exposed directly, so underscoring them should help make users aware that they are not meant for public consumption.
- Loading branch information
Chris Garrett
committed
Mar 17, 2021
1 parent
df149be
commit aece1dc
Showing
22 changed files
with
109 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { Backburner, DeferredActionQueues, Timer } from 'backburner.js'; | ||
|
||
export const backburner: Backburner; | ||
export const _backburner: Backburner; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
rwjblue
Member
|
||
|
||
export const run = Backburner.run; | ||
export const schedule = Backburner.schedule; | ||
|
@@ -9,7 +9,7 @@ export const join = Backburner.join; | |
export const cancel = Backburner.cancel; | ||
export const scheduleOnce = Backburner.scheduleOnce; | ||
|
||
export function getCurrentRunLoop(): DeferredActionQueues; | ||
export function _getCurrentRunLoop(): DeferredActionQueues; | ||
|
||
export function once(method: Function): Timer; | ||
export function once<T, U extends keyof T>(target: T, method: U, ...args): Timer; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
This makes writing both aspects of ember-qunit a little tricky (Related issue emberjs/ember-qunit#866)
My goal is to write the above, in a way that is backwards compatible, and yet statically analyzable. Once we are in a 100% embroider world, we can likely use conditionals +
importSync
. But in the meantime, I'm not sure if there is a good solution....