Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/kouyjes/promise


https://github.com/kouyjes/promise

custom-promise deferred pollyfill promise simple-promise

Last synced: 8 days ago
JSON representation

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);
});
});
```