Change signature of addJvmShutdownHook
* because with Scala 2.12 it can't infer the right overload * prefer the `() =>`, but here it's clear that it's a callback * similar in ActorSystem.registerOnTermination
This commit is contained in:
parent
94e40460a4
commit
ca09f706eb
2 changed files with 4 additions and 4 deletions
|
|
@ -646,7 +646,7 @@ class ActorDocSpec extends AkkaSpec("""
|
|||
//#coordinated-shutdown-addTask
|
||||
|
||||
//#coordinated-shutdown-jvm-hook
|
||||
CoordinatedShutdown(system).addJvmShutdownHook { () =>
|
||||
CoordinatedShutdown(system).addJvmShutdownHook {
|
||||
println("custom JVM shutdown hook...")
|
||||
}
|
||||
//#coordinated-shutdown-jvm-hook
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue