0.1.16 • Published 2 months ago
@trenskow/buffered-promise v0.1.16
@trenskow/buffered-promise
A simple promise for buffering results. Useful for when you want to add await
or then
/catch
handlers at a later point and want to prevent the uncaughtPromiseRejected
event.
Usage
const BufferedPromise = require('buffered-promise');
const promise = new BufferedPromise(new Promise((resolve, reject) => {
/* Your promise */
}));
License
See LICENSE