CaffeinatePowerRunner class final

macOS runner: one caffeinate child per held assertion (per run by default, per session at power.hold: session), bound to the fa pid by -w. Kill-safe: ProcessPowerAssertionHandle.release terminates the child even though -w would also end it at process exit.

Implemented types

Constructors

CaffeinatePowerRunner({required int pid, PowerProcessLauncher? launcher})

Properties

hashCode int
The hash code for this object.
no setterinherited
pid int
The fa process id caffeinate watches (-w).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

acquire(PowerAssertionOptions options) Future<PowerAssertionHandle>
Starts holding an assertion with options; throws when the helper cannot be spawned (the caller warns and continues).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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