Firebreak.Child (Firebreak v0.1.0)

Copy Markdown View Source

A single child entry inside a supervisor's child list.

Built by best-effort static extraction from Supervisor.init/2, Supervisor.start_link/2 and Application.start/2 child lists. Some fields may be nil when they can't be determined statically (e.g. a child spec assembled at runtime).

Summary

Types

child_type()

@type child_type() :: :worker | :supervisor | nil

restart()

@type restart() :: :permanent | :transient | :temporary | nil

t()

@type t() :: %Firebreak.Child{
  id: term(),
  line: non_neg_integer() | nil,
  module: module() | nil,
  name: term(),
  raw: String.t() | nil,
  restart: restart(),
  shutdown: term(),
  type: child_type()
}