ProcessManager class
Manages process execution, tracking, and lifecycle.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onOutput
→ Stream<
ProcessEvent> -
Stream of process events.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Dispose of resources.
-
getRunningProcesses(
) → List< ProcessInfo> - Get info about all tracked processes.
-
isRunning(
int pid) → bool - Check if a process is running.
-
kill(
int pid, {ProcessSignal signal = ProcessSignal.sigterm}) → bool - Kill a process by PID.
-
killAll(
{ProcessSignal signal = ProcessSignal.sigterm}) → void - Kill all tracked processes.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
ProcessConfig config) → Future< ProcessOutput> - Run a process and wait for it to complete.
-
runInteractive(
ProcessConfig config) → Future< Process> - Start an interactive process (returns the raw Process).
-
runParallel(
List< ProcessConfig> configs, {int? maxConcurrency}) → Future<List< ProcessOutput> > - Run multiple processes in parallel with optional concurrency limit.
-
runPiped(
List< ProcessConfig> configs) → Future<ProcessOutput> - Pipe stdout of each process into stdin of the next.
-
runWithTimeout(
ProcessConfig config, Duration timeout) → Future< ProcessOutput> - Run a process with an explicit timeout.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited