Daemon class

The long running daemon process.

Obtains a file lock to ensure a single instance and writes various status files to be used by clients for connection.

Also starts a Server to listen for build target registration and event notification.

Constructors

Daemon(String workingDirectory)

Properties

hashCode int
The hash code for this object.
no setterinherited
hasLock bool
no setter
onDone Future<int>
Returns exit code.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

currentOptions() Future<Set<String>>
Returns the current options of the running build daemon.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runningVersion() Future<String?>
Returns the current version of the running build daemon.
start(Set<String> options, DaemonBuilder builder, ChangeProvider changeProvider, {Serializers? serializersOverride, bool shouldBuild(BuildTarget, Iterable<WatchEvent>)?, Duration timeout = defaultIdleTimeout}) Future<void>
stop({String message = '', int failureType = 0}) Future<void>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited