Skip to content

appivo/jpromise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jpromise

A java library providing a Promise-implementation very similar to that of ES6.

Deferred def = new Deferred();

Promise promise = def.then((result) -> {
  return result + 10;
});

promise.then((result) -> {
  System.out.println(result);
});

def.resolve(5);