Merge pull request #24049 from akka/wip-24048-coordinated-downing-patriknw
Run all CoordinatedShutdown phases also when downing, #24048
This commit is contained in:
commit
774bfee074
14 changed files with 331 additions and 53 deletions
|
|
@ -832,7 +832,8 @@ public class ActorDocTest extends AbstractJavaTest {
|
|||
// don't run this
|
||||
if (false) {
|
||||
//#coordinated-shutdown-run
|
||||
CompletionStage<Done> done = CoordinatedShutdown.get(system).runAll();
|
||||
CompletionStage<Done> done = CoordinatedShutdown.get(system).runAll(
|
||||
CoordinatedShutdown.unknownReason());
|
||||
//#coordinated-shutdown-run
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -756,7 +756,7 @@ class ActorDocSpec extends AkkaSpec("""
|
|||
// don't run this
|
||||
def dummy(): Unit = {
|
||||
//#coordinated-shutdown-run
|
||||
val done: Future[Done] = CoordinatedShutdown(system).run()
|
||||
val done: Future[Done] = CoordinatedShutdown(system).run(CoordinatedShutdown.UnknownReason)
|
||||
//#coordinated-shutdown-run
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue