Indeed. My point was more that one has to both account for potential memory leakage (Actor gets replaced on restart) as well as the threadsafety of the logger. On Aug 8, 2014 10:15 AM, "Christopher Hunt" <[email protected]> wrote:
> …so there you are… there is of course still a danger of closing over the > wrong thing. We should take a copy of the log then before the callback. As > stated, the idea is to minimise the potential for closing over the wrong > thing, but of course the approach doesn't eliminate that possibility. > > On 08/08/2014, at 5:55 PM, √iktor Ҡlang <[email protected]> wrote: > > In the example you are closing over 'this.log...' > > -- > Christopher Hunt > Senior Engineer > Typesafe – Build Reactive Apps on the JVM! > > Twitter: @huntchr > > -- > >>>>>>>>>> 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.
