stopSync

fun stopSync(maxWait: Duration = 15.seconds)

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

Parameters

maxWait

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