Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// PromisedNumber :: () -> Promise<Error>
const PromisedNumber = () => new Promise(function (fulfill, reject) {
setTimeout(() => { reject(new Error('could not produce number')) }, 500)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment