Control.child_spec/1
Builds a permanent supervisor child spec without attaching.
Source and package
- Qualified name
-
LibTmux .Control .child _spec/1 - Module
- LibTmux
- Declared in
- Control
- Package
- libtmux
- Source
- lib/libtmux/control.ex
- child_spec(options) @spec child_spec([start
_option ()]) :: Supervisor.child ()_spec -
Description#
Prepares bounded detached inputs and one lifetime shared by all factory invocations. Each invocation starts its own configured startup budget. A restarted nonfresh lifetime returns an inert handle and never attaches automatically. Proven retirement permits explicit
reconnect/2; unknown cleanup refuses it. Old handles never follow a replacement Root or Manager.Supervisor.start_child/2andSupervisor.restart_child/2return the new handle as their third info element. After an automatic restart, useSupervisor.terminate_child/2followed bySupervisor.restart_child/2for fresh info. This does not clear unknown cleanup or authorize replay.See the worked example.
- Parameters
-
-
options([start_option ()]) #
-
Discussed in Execution ownership