Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rkrupinski/janusz

Yet another Promises/A+ implementation. Yay!
https://github.com/rkrupinski/janusz

Last synced: about 18 hours ago
JSON representation

Yet another Promises/A+ implementation. Yay!

Awesome Lists containing this project

README

        

# Janusz

Yet another [Promises/A+](https://github.com/promises-aplus/promises-spec) implementation. Yay!

[![Build Status](https://travis-ci.org/rkrupinski/janusz.png?branch=master)](https://travis-ci.org/rkrupinski/janusz)

```javascript
const defer = janusz.deferred();

janusz.resolve({
then(onFulfilled) {
onFulfilled(defer.promise);
},
}).then(val => console.log(val));

setTimeout(() => defer.resolve('Batman!'), 1000);
```