Aller au contenu

shutdownAsync

Ce contenu n’est pas encore disponible dans votre langue.

fun shutdownAsync(): CompletableFuture<Void?>

shutdown for Java. Runs on its own scope, not the client’s, which shutdown() cancels. Blocking it from the main thread throws rather than deadlocking; sequence a following initialize off the future (thenRun) rather than beside it, or the new client races the old one’s teardown.