Skip to content

Instantly share code, notes, and snippets.

@darylteo
Created February 20, 2013 09:19
Show Gist options
  • Select an option

  • Save darylteo/4994218 to your computer and use it in GitHub Desktop.

Select an option

Save darylteo/4994218 to your computer and use it in GitHub Desktop.
Sigh
makePromise("Hello World")
.then(new PromiseHandler<String, Character>() {
@Override
public Character handle(String result) {
return result.charAt(0);
}
}, vertx)
.fin(new PromiseHandler<Void, Void>() {
@Override
public Void handle(Void value) {
tu.testComplete();
return null;
}
}, vertx);
makePromise("Hello World")
.then(new PromiseHandler<String, Character>() {
@Override
public Character handle(String result) {
return result.charAt(0);
}
})
.fin(new PromiseHandler<Void, Void>() {
@Override
public Void handle(Void value) {
tu.testComplete();
return null;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment