DeviceClaims class

One claim file per device under ~/.glint/claims, so parallel agents never share a device by accident.

Constructors

DeviceClaims({String? dir, int? ownPid, bool isAlive(int pid)?})

Properties

dir → String
final
hashCode → int
The hash code for this object.
no setterinherited
ownPid → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

claim(String deviceId, {String? app}) → void
Marks deviceId as driven by this process, unless another live session holds it (that claim stays theirs); best effort, since a claim only guards against accidents.
heldByOther(String deviceId) → DeviceClaim?
The live claim another process holds on deviceId, or null when it is free or ours.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release(String deviceId) → void
Frees deviceId for other agents when this process holds the claim; a claim another process holds is left alone.
toString() → String
A string representation of this object.
inherited
touch(String deviceId) → void
Records that this process just acted on deviceId, at most every 30 s, so others can tell a busy claim from an idle one.

Operators

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