stopSync

fun stopSync(timeout: Duration = 30.seconds)

Stops the service asynchronously and blocks until it has terminated or the timeout expires.

Parameters

timeout

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