Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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!
- Host: GitHub
- URL: https://github.com/rkrupinski/janusz
- Owner: rkrupinski
- Created: 2016-08-12T16:29:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-09T07:27:55.000Z (over 8 years ago)
- Last Synced: 2024-11-12T01:17:29.929Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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);
```