Daemon constructor

Daemon(
  1. String workingDirectory, {
  2. String? daemonSharedPath,
})

Creates a long running daemon process for builds in workingDirectory.

Optionally pass daemonSharedPath to use a separate shared path for lock files. Avoid using globally shared paths on shared machines.

Implementation

Daemon(String workingDirectory, {String? daemonSharedPath})
  : _workingDirectory = workingDirectory,
    _daemonSharedPath = daemonSharedPath,
    _lock = _tryGetLock(workingDirectory, daemonSharedPath: daemonSharedPath);