public static Result index() {
Promise<Integer> promiseOfInt = Akka.future(
new Callable<Integer>() {
public Integer call() {
return intensiveComputation();
}
}
);
return async(
promiseOfInt.map(
new Function<Integer,Result>() {
public Result apply(Integer i) {
flash().put("success", "The operation was successful"); // problem line
return ok("Got result: " + i);
}
}
)
);
}> Euhm, i guess…. I'm using play-2.0.1
https://github.com/playframework/Play20/wiki/BuildingFromSource
|
|
15 May ![]() |
![]() ![]() | ||
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/7r5JGfzrmOsJ.
Currently trying to figure out same problem. Anyone there with a solution?
Dne neděle, 4. listopadu 2012 11:43:36 UTC+1 Ondřej Kroupa napsal(a):