0.0.1 • Published 6 years ago
rrctx v0.0.1
rrctx
Returns a promise context.
Install
Install with npm
$ npm i rrctx --save
Install with yarn
$ yarn add rrctx
Example
const ctx = require('rrctx')();
setTimeout(function() {
ctx.resolve('value');
}, 3000);
ctx.promise.then(function() {
// todo something
});
0.0.1
6 years ago