import on from 'on.js'
async function royalAirForce(){
await on(requestAnimationFrame)
renderX()
await on(requestAnimationFrame)
renderY()
await on(requestAnimationFrame)
renderZ()
await on(requestAnimationFrame)
}
Created
January 5, 2018 14:48
-
-
Save barneycarroll/77049a9d3800161ec27e48e894cd64eb to your computer and use it in GitHub Desktop.
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
export default (ƒ, ...args) => | |
new Promise(done => | |
ƒ(done, ...args) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment