PowerAssertionRunner class abstract interface

Acquires power assertions when the configured hold asks for one (per-run at turn start by default, per-session as the opt-in, #326). Implementations spawn the platform helper (macOS caffeinate, Linux systemd-inhibit) or degrade to a no-op note on platforms without one.

Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
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).
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