Platform liveness / identity / kill seam (ADR-0018 §1): the three members every kind-specific lifecycle logic needs, abstracted from the host OS.
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
-
identityToken(
int pid) → Future< String?> -
An identity token that changes when the OS reuses
pidfor a different process — the process start time (or equivalent). Null when the process is not alive or the token is unobtainable. -
isAlive(
int pid) → Future< bool> -
Whether a process with OS id
pidis currently alive. -
kill(
int pid, {Duration grace}) → Future< bool> -
Stops
pidafter verifying its identity. Unix hosts try SIGTERM, wait up tograce, then SIGKILL if still alive; Windows uses the process termination available through Dart'sProcess.killPid. Returns false when the process could not be safely stopped. -
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