public static Promise<Result> index() {
Promise<Integer> promiseOfInt = Promise.promise(
new Function0<Integer>() {
public Integer apply() {
return intensiveComputation();
}
}
);
return promiseOfInt.map(
new Function<Integer, Result>() {
public Result apply(Integer i) {
return ok("Got result: " + i);
}
}
);
}[error] web/conf/routes:7: Cannot use a method returning play.libs.F.Promise[_$1] as an Handler
[error] GET /pay controllers.Application.verifyCheckoutRequest()
[error] web/conf/routes:7: not enough arguments for constructor HandlerRef: (implicit handlerInvoker: play.core.Router.HandlerInvoker[play.libs.F.Promise[_$1]])play.api.mvc.HandlerRef[play.libs.F.Promise[_$1]].
[error] Unspecified value parameter handlerInvoker.
[error] GET /pay controllers.Application.verifyCheckoutRequest()
[error] web/conf/routes:7: Cannot use a method returning play.libs.F.Promise[_$1] as an Handler
[error] GET /pay controllers.Application.verifyCheckoutRequest()
[error] three errors found
[error] (compile:compile) Compilation failed
[error] application -
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "play-framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/play-framework/U1Xnaj6-hCQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framewor...@googlegroups.com.