Core Library0.xAPI reference

Choose documentation 1

pr-173

Current version

pr-173
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

function libtmux-elixir

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

Recorded calls

source calls
No call edges in the Elixir model.

The Elixir reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Control.child_spec/1.

Guides

task material

Pages that discuss child_spec/1.

Esc
Search in

Type to search.

Reference previewOpen reference