PowerAssertionHold enum
When the sleep-prevention assertion is held (power.hold, #326):
per-run by default — an agent idling between turns must not pin the
machine awake for hours (battery/thermal); holding the whole session
is an explicit opt-in.
Values
- perRun → const PowerAssertionHold
-
Acquire when a run goes in flight, release when it settles (including post-run compaction). The default.
const PowerAssertionHold('per-run') - session → const PowerAssertionHold
-
Hold from session open to session close — oh-my-pi's lifecycle, kept as an explicit opt-in for always-on deployments.
const PowerAssertionHold('session')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
The yaml/config label.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromValue(
String? value) → PowerAssertionHold? -
The lifecycle for a config label, or null when
valueis not one.
Constants
-
values
→ const List<
PowerAssertionHold> - A constant List of the values in this enum, in order of their declaration.