Core LibraryunreleasedAPI reference

Choose documentation 3

latest

Current version

latest
English

Unreleased LibTmux has not been released. Its API may change during development. This site's structure and URLs may change too.

MoreLess about this notice

function LibTmux.jl

on_cancel

Source and package
Qualified name
LibTmux.on_cancel
Module
LibTmux
Package
LibTmux
Source
src/process.jl

Methods

Register a callable and return a CancellationSubscription. cancel! invokes each registered callback once, outside the token lock, on its calling task. If already cancelled, invoke f() before returning. Keep callbacks prompt: signal an event or stop an owned process; do not wait for operation completion. Callback failures are collected after all callbacks run and raised together.

on_cancel(f, token::CancellationToken)

Closing a subscription prevents later invocation and joins a callback already running on another task. Close subscriptions when their operation retires.

Recorded calls

source calls
No call edges in the Julia model.

The Julia 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.on_cancel.

Esc
Search in

Type to search.

Reference previewOpen reference