ProcessLiveness class abstract interface

Platform liveness / identity / kill seam (ADR-0018 §1): the three members every kind-specific lifecycle logic needs, abstracted from the host OS.

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

identityToken(int pid) → Future<String?>
An identity token that changes when the OS reuses pid for 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 pid is currently alive.
kill(int pid, {Duration grace}) → Future<bool>
Stops pid after verifying its identity. Unix hosts try SIGTERM, wait up to grace, then SIGKILL if still alive; Windows uses the process termination available through Dart's Process.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