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
// Promise.all is good for executing many promises at once | |
Promise.all([ | |
promise1, | |
promise2 | |
]); | |
// Promise.resolve is good for wrapping synchronous code | |
Promise.resolve().then(function () { | |
if (somethingIsNotRight()) { | |
throw new Error("I will be rejected asynchronously!"); |
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
# CheckOutActive - Check the active window out for modification | |
# | |
# Usage: Called by a userdefined menu item | |
# | |
# CheckOutActive uses the ProjectInfo command to determine the | |
# parent project for the file open as the Active window. Once this | |
# project has been determined, the file open as the Active window | |
# can be properly checked out. | |
# | |
# © Apple Computer, Inc. 1988 |