Core LibraryalphaAPI Reference

Choose documentation 1

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

function libtmux-elixir latest

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/2 and Supervisor.restart_child/2 return the new handle as their third info element. After an automatic restart, use Supervisor.terminate_child/2 followed by Supervisor.restart_child/2 for fresh info. This does not clear unknown cleanup or authorize replay.

See the worked example.

Parameters

Discussed in Execution ownership

Esc

Type to search.

Reference preview Open reference