Hi there,

It's prohibited to leak and close over actor internals. In your case Future not 
only closes over 'sender()', which is very bad and causes timeout (cause by the 
time future is complete sender() is null), you also modify actor internal state 
inside it, assigning to 'student', which is just horrible. 

In your example there us no need for Future at all. If you try to model some 
prolonged action, you should fix your sender by 'val reply = sender()' before 
Future invocation and send results after it back to sender and self, to update 
your student. 

-- 
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to