NAME

LibTmux::Operation - Executor-independent prepared command continuations

METHODS

request

request(argv => [...], stdin => $octets, ...) owns its input arguments. Execution is explicit through "run"; preparation performs no I/O.

value

Wrap one local value, including undef for a documented void operation.

then

Compose a local transformation returning one value or another Operation. Exceptions retain their original identity.

catch

Recover a failure with one value or another Operation.

sequence

Execute an array of Operations in order, returning one arrayref of results.

run

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.

The synchronous LibTmux::Server and optional async distribution use the same preparation, codecs, and graph semantics. Core has no Future dependency.