Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kouyjes/promise
https://github.com/kouyjes/promise
custom-promise deferred pollyfill promise simple-promise
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kouyjes/promise
- Owner: kouyjes
- Created: 2017-06-27T06:31:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-15T03:47:44.000Z (almost 7 years ago)
- Last Synced: 2023-10-15T18:54:04.859Z (about 1 year ago)
- Topics: custom-promise, deferred, pollyfill, promise, simple-promise
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# promise
## api ##
```javascript
1.var deferred = HERE.$Promise.deferred();
async-callback(function(data){
deferred.resolve(data);
});
return deferred.promise;
2.new HERE.$Promise(function(resolve,reject){
async-callback(function(data){
resolve(data);
});
});
```