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.

Perl API

class libtmux-perl latest

Operation

Executor-independent prepared command continuations

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

Members6#

  • catch method Recover a failure with one value or another Operation.
  • request method request(argv => [...], stdin => $octets, ...) owns its input arguments. Execution is explicit through "run"; preparation performs no I/O.
  • run method run($executor, $on_done, $on_fail) supplies requests and two one-argument completion callbacks to the executor. The executor returns a cancellation hook. run returns a cancellation coderef suppressing further submissions. Each request settles once; the complete operation yields one value or error.
  • sequence method Execute an array of Operations in order, returning one arrayref of results.
  • then method Compose a local transformation returning one value or another Operation. Exceptions retain their original identity.
  • value method Wrap one local value, including undef for a documented void operation.
Esc

Type to search.

Reference previewOpen reference