What do you mean by "cache" here?  A Future is mostly a Future -- I don't
have any reason to believe there is anything weird about the Futures from
ask -- but I'm not clear what your cache is...

On Wed, May 27, 2015 at 4:48 PM, Moiz Raja <[email protected]> wrote:

> I have a piece of code where I make a request to an actor using ask and
> cache the resulting future if that ask was successful. I am seeing problems
> in this area where when I try to access that "completed" future later on I
> find (a) that it does not contain a successful future and (b) the resulting
> timeout exception has a completely unexpected timeout.
>
> This makes me wonder if the ask future that is being returned is something
> we can cache. Is the future mutable per chance?
>
> Any advise on whether caching is ok or not would be helpful.
>
> Thanks,
> -Moiz
>
> --
> >>>>>>>>>> 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.
>

-- 
>>>>>>>>>>      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.

Reply via email to