Here are the examples of the java api play.libs.F.RedeemablePromise.success() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
15
Source : AsyncController.java
with Apache License 2.0
from thefreebit
with Apache License 2.0
from thefreebit
public Promise<Result> message() {
RedeemablePromise<Result> promise = RedeemablePromise.empty();
actorSystem.scheduler().scheduleOnce(Duration.create(1, SECONDS), () -> {
new CreateTraceEntry().traceEntryMarker();
promise.success(Results.ok("Hi!"));
}, exec);
return promise;
}