stopSync

fun stopSync(timeout: Duration = 30.seconds)

Stops the service asynchronously and blocks until it has terminated.

Parameters

timeout

the maximum duration to wait for the service to stop. Defaults to 30 seconds.

Throws

if the service has not terminated within timeout.

if the service fails.


fun stopSync(timeout: Duration)

Stops the service and blocks until it has terminated, for Java callers; see the java.time.Duration startSync.

Parameters

timeout

the maximum duration to wait for the service to stop.

Throws

if the service has not terminated within timeout.

if the service fails.