Promise.defer
promise.defer
is a lightweight NPM package that allows you to create promise synchronously.
Installation
npm install --save promise.defer
API
;
Example Usage
{ const deferred = fs return deferredpromise}
CommonJS consumers may need to import it like:
const default: promiseDefer =
License
This package is licensed under the terms of MIT License. See the LICENSE file for more info.