clean up application structure
- introduce common parent for guardian and systemGuardian - install deathWatch chain to ensure proper shutdown upon guardian’s death - re-install stdout logger before detaching default loggers - await app termination after running AkkaSpec tests (max 5sec, with warning logged if not stopped)
This commit is contained in:
parent
01d8b00a76
commit
d1e0f411ef
7 changed files with 77 additions and 32 deletions
|
|
@ -107,7 +107,7 @@ class Dispatcher(
|
|||
protected[akka] def shutdown {
|
||||
val old = executorService.getAndSet(new LazyExecutorServiceWrapper(executorServiceFactory.createExecutorService))
|
||||
if (old ne null)
|
||||
old.shutdown()
|
||||
old.shutdownNow()
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue