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:
Patrik Nordwall 2017-01-25 09:01:11 +01:00
parent 94e40460a4
commit ca09f706eb
2 changed files with 4 additions and 4 deletions

View file

@ -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