Resolvable Promise

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

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' })

Links: GitHub | ghuc.cc · NPM | Browse Package · deno.land | Docs