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