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

Program.cancel/2

Requests termination through the private launcher, then waits for retirement.

Source and package
Qualified name
LibTmux.Program.cancel/2
Module
LibTmux
Declared in
Program
Package
libtmux
Source
lib/libtmux/program.ex
cancel(program, timeout) @spec cancel(t(), 1..600_000) :: {:ok, result()} | {:error, LibTmux.Error.t()}

Description

A natural exit can win the race with cancellation. The result retains the actual exit evidence in either case. A timeout can occur after a termination request has reached the launcher. Await the same handle for its result or retry cancellation within a new caller budget.

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.Program.cancel/2.

Esc
Search in

Type to search.

Reference previewOpen reference