Skip to content

kouyjes/promise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

promise

api

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