# LibTmux::Server.run-shell-async

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/e76160bcce6e03976d49424da15b7c31afb2c68e/lib/LibTmux/Server.rakumod#L485
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-server-run-shell-async/

```
method run-shell-async(Mu $script, Mu :$background = False, Mu :$pane = PaneId,
                       Cancellation :$cancel = Cancellation --> Promise:D)
```

Resolve the bounded tmux job request; cancellation does not undo a server-side job.

Resolve the bounded tmux job request; cancellation does not undo a server-side job.

## Parameters

- `$script` (`Mu`)
- `$background?` (`Mu`)
- `$pane?` (`Mu`)
- `$cancel?` (`Cancellation`)

## tmux command

The tmux commands behind `run-shell-async`.

- [`run-shell`](/en/tmux/latest/manual/run-shell/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_run_shell_entry`](/en/tmux/latest/reference/c-variable-cmd_run_shell_entry/) (attribute)
- [`cmd_run_shell_exec`](/en/tmux/latest/reference/c-function-cmd-run-shell-c-cmd_run_shell_exec/) (function)
