Fork

Namespace

Table of Contents

Interfaces

ForkExceptionInterface

Represents the base contract for all exceptions thrown by the fork library.

ForkManagerInterface

Implementations of this interface MUST provide the orchestration layer responsible for spawning, supervising, signaling, and synchronizing worker processes.

SignalHandlerInterface

Defines the contract for manager-owned signal handlers.

WorkerGroupInterface

Defines an immutable group of workers.

WorkerInterface

Defines the contract for a single worker process.

Classes

InvalidArgumentException

Represents invalid argument failures raised by the fork library.

LogicException

Represents logical contract violations detected during worker orchestration.

RuntimeException

Represents runtime failures raised while spawning, coordinating, or monitoring worker processes.

ForkManager

Coordinates the lifecycle of worker processes using process forking.

DefaultSignalHandler

Propagates termination-oriented signals to workers managed by the master process.

Worker

Represents a single forked worker process.

WorkerGroup

Provides an immutable view over a collection of workers created by the same manager.

Enums

Signal

Represents supported POSIX signals exposed by the public API.