pub fn connect_or_start(
scope_hash: Option<&str>,
) -> Result<DaemonClient, ClientError>Expand description
Connect to the daemon, starting it first if it is not running.
- Attempt to connect.
- On failure, spawn
running-process-daemon startas a detached process. - Retry with exponential back-off: 50 ms, 100 ms, 200 ms, 400 ms.
- Return an error if the daemon cannot be reached after all retries.