Core LibraryunreleasedAPI Reference

Choose documentation 2

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.

class libtmux-perl latest

ProcessJob

Shared owned process-supervision boundary

Source and package
Qualified name
LibTmux::ProcessJob
Module
LibTmux
Package
LibTmux
Source
packages/core/lib/LibTmux/ProcessJob.pm

Members8#

  • cancel method Request cleanup without blocking. Cancellation can follow dispatch and does not imply rollback or completed reaping.
  • cleanup_complete method True only after a valid supervisor result proves owned program cleanup.
  • consume method Accumulate bounded result octets. Malformed or excessive data is a failure.
  • finish method Decode the complete result after EOF and supervisor exit. Return one LibTmux::CommandResult or throw a typed error.
  • pid method Return the supervisor PID. It differs from the program PID.
  • start method Start a supervised literal command using the same arguments as "run" in LibTmux::Transport. This explicit operation performs I/O.
  • take_result_handle method Transfer the result pipe exactly once. Its reader owns closing that handle.
  • wait method The synchronous reader/reaper. A loop-owned job refuses blocking wait. Async adapters supply a spawn/reap callback and retain jobs through EOF plus the matching exit notification. Dropping a job closes its parent guard but does not synchronously wait; owners must complete their cleanup protocol.
Esc

Type to search.

Reference previewOpen reference