GEPA.StopCondition.SignalStopper (GEPA v0.3.0)

Copy Markdown View Source

BEAM-friendly signal/interrupt stopper.

Elixir cannot portably install per-run OS signal handlers without affecting the VM. This stopper exposes request_stop/1 for supervisors, Livebooks, or operator code to trip the condition explicitly.

Summary

Types

t()

@type t() :: %GEPA.StopCondition.SignalStopper{
  signals: [atom()],
  stop_requested: boolean()
}

Functions

new(opts \\ [])

@spec new(keyword()) :: t()

request_stop(stopper)

@spec request_stop(t()) :: t()