How to create a Promise<Result>
in Play 2.0 framework - Java
I see this link http://www.playframework.org/documentation/2.0.4/JavaAsync. it doesn't contain that much details. do you known any tutorial than refer to me. pls.
This is new way of creating Promise in Play 2.2
Promise<Boolean> myPromise = Promise.promise(new Function0<Boolean>() {
public Boolean apply() throws Throwable {
// TODO - Add Implementation here.
return Boolean.TRUE;
}
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With