I heard somewhere that by default an Actor system, meaning its ExecutorService/Dispatcher was creating a pool of Non-Deamon thread to run Actor. If it is indeed really the case, and that would explain some of the behavior i had experience, where in the documentation of AKKA can i find it. I mean in the last version of the documentation there is nothing that says it. It seams also that this has change in the mean time.
Some have used AwaitTermination in the main thread, to keep the program from not shutting down the actor system that is running. I have seen code snippet like that. But then i realize that is it not useful. Still Puzzle by that behavior i went on to experiment with futures, but it did not work and i had to block on my main. However when used within an Actor it works. Well that's because the future is running in a daemon thread. Those difference are quite important to understand. When one import ExecutionContext.implicit.global : 1 - when running a future, is the execution context a threadPool of Deamon or non Deamon Thread 2 - when running a future within an Actor ? What happens, is it the same as importing inside the actor context.dispatcher ? In this case, when one start an Actorsystem, does the ExecutionContext.implicit.global value change to an executorService with a pool of non-daemon thread. *I would really appreciate if someone, could help me clarify a little, the value of ExecutionContext.implicit.global in the context of no actor but Future, in the context of Actor, and in the context of future within Actor ? In particular what kind of thread does it manage Deamon or non-deamon (with respect to the context cited before)? If possible, a documentation about it. * -- >>>>>>>>>> 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.
