@trenskow/buffered-promise

0.2.8 • Public • Published

@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

Readme

Keywords

Package Sidebar

Install

npm i @trenskow/buffered-promise

Weekly Downloads

106

Version

0.2.8

License

BSD-2-Clause

Unpacked Size

3.87 kB

Total Files

5

Last publish

Collaborators

  • trenskow