startSync

fun startSync(maxWait: Duration = 15.seconds)

Starts the service asynchronously and blocks until it is running or the timeout expires.

Parameters

maxWait

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