@simonpai/resolution
v1.0.0
Published
A function a generate a tuple of promise and its resolve/reject functions.
Downloads
3
Readme
Resolution
Install
npm install @simonpai/resolution --save
Usage
import resolution from '@simonpai/resolution';
const res = resolution();
await res.promise;
res.resolve('value');
res.reject('error');