Skip to main content
Deno 2 is finally here 🎉️
Learn more

Resolvable Promise

A promise that is resolvable (or rejectable) after it was created.

const promise = new ResolvablePromise()
promise.then(x => console.log('Resolved!', x))
promise.resolve({ foo: 'bar' })