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
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