# LibTmux::Operation::run

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Perl
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-perl/blob/352715a4fa66a96eed7763b90daaa536aa2f121d/packages/core/lib/LibTmux/Operation.pm#L51
- **Page:** https://libtmux.org/en/perl/latest/reference/libtmux-operation-run/

```
sub run($self, $executor, $done, $fail)
```

`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`](/en/perl/latest/reference/libtmux-server/) and optional async distribution use the same preparation, codecs, and graph semantics. Core has no Future dependency.

## Methods

## Parameters

- `executor`
- `done`
- `fail`
