janusz
v0.0.1
Published
Yet another Promises/A+ implementation. Yay!
Downloads
2
Readme
Janusz
Yet another Promises/A+ implementation. Yay!
const defer = janusz.deferred();
janusz.resolve({
then(onFulfilled) {
onFulfilled(defer.promise);
},
}).then(val => console.log(val));
setTimeout(() => defer.resolve('Batman!'), 1000);