--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-framework+unsubscribe@googlegroups.com.For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Chanan BraunsteinThis returns back a future, how do I convert it to my object? I tried a bit with the OnSuccess method, but cannot get it to work. -- 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-framework+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.

This returns back a future, how do I convert it to my object? I tried a bitwith the OnSuccess method, but cannot get it to work.

--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-framework+unsubscribe@googlegroups.com.For more options, visit https://groups.google.com/groups/opt_out.

Chanan BraunsteinMore specifically my code is: return async ( Akka.asPromise(ask(gradeActor, getGrade, 10000)).map( new Function() { @Override public Result apply(Object result) throws Throwable { return ok(Json.toJson(result)); } } ) ); When there was only one Actor in the chain, the json would be the result object of course. Now with the second actor and the forward, I am getting: { - completed: true } I assume that is a future, so my result is a Future>? Just not sure how to unwrap that future. -- You

This returns back a future, how do I convert it to my object? I tried abit with the OnSuccess method, but cannot get it to work.

--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-framework+unsubscribe@googlegroups.com.For more options, visit https://groups.google.com/groups/opt_out.

Guillaume BortHi, I guess that you have to use flatMap instead of map somewhere: http://www.playframework.com/documentation/api/2.1.x/java/play/libs/F.Promise.html#flatMap(play.libs.F.Function) -- Guillaume Bort, @guillaumebort – http://guillaume.bort.fr -- 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-framework+unsubscribe@googlegroups.com. For more options, visit

This returns back a future, how do I convert it to my object? I tried abit with the OnSuccess method, but cannot get it to work.

--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 anemail to play-framework+unsubscribe@googlegroups.com.For more options, visit https://groups.google.com/groups/opt_out.

--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-framework+unsubscribe@googlegroups.com.For more options, visit https://groups.google.com/groups/opt_out.

This returns back a future, how do I convert it to my object? I tried abit with the OnSuccess method, but cannot get it to work.

--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 anemail to play-framewor...@googlegroups.com <javascript:>.For more options, visit https://groups.google.com/groups/opt_out.

--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-framework+unsubscribe@googlegroups.com.For more options, visit https://groups.google.com/groups/opt_out.