startSync

fun startSync(timeout: Duration = 30.seconds)

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

Parameters

timeout

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