I am new to Akka.
I would like to know how to return some result from onSuccess method.
I mean, If I would like to extract the response from an actor after it
executes completely. I need to get the result and add some extra messages
and send the result back to the rest client.
I am not able to find out if it is possible to do so.
//in my rest controller
Future<Object> future = getItemService(id);
future.onSuccess(
//retrieve the result fromthe future and wrap the result
with some extra info and return to the caller );
Is there any way to do that?
I also know that we can use Await and then convert the result. But wont it
affect the asynchronous behaviour ?
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.