Hi Eric,

sender() has caused a lot of trouble in practise, and we would do it
differently if we would have known. We don't want to add a similar problem
by adding currentMessage().

Personally I think the best way is to grab it explicitly and pass it down
when needed, but I can understand that you sometimes want to use something
with less boilerplate.

I wouldn't grab it from the ActorCell, since that is very internal API that
may change at any time. It is better to grab it in aroundReceive (also
private[akka]) or use the Receive Pipeline Pattern
<http://doc.akka.io/docs/akka/snapshot/contrib/receive-pipeline.html> (only
in master).

Cheers,
Patrik

On Tue, Mar 24, 2015 at 7:37 PM, Eric Pederson <[email protected]> wrote:

> Dear Akka Team - could you comment on this?
>
> Thanks,
>
> (I realized after the fact that posting the original question during
> ScalaDays was a bad idea...)
>
> --
> >>>>>>>>>>      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.
>



-- 

Patrik Nordwall
Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
Twitter: @patriknw

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