# LibTmux::Client::ClientTarget.prompt-async

- **Module:** LibTmux::Client
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Client.rakumod#L217
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-client-clienttarget-prompt-async/

```
method prompt-async(CommandTemplate:D $template, Positive:D :$timeout-ms!,
                        Str:D :$prompts = ':', Str:D :$inputs = '',
                        Str:D :$mode = 'text', Str:D :$type = 'command',
                        Bool:D :$literal-commas = False,
                        *%operation --> Promise:D)
```

Prompt with explicit tmux template syntax. Commas separate prompts and inputs.

Prompt with explicit tmux template syntax. Commas separate prompts and inputs.

## Parameters

- `$template` (`CommandTemplate:D`)
- `$timeout-ms` (`Positive:D`)
- `$prompts?` (`Str:D`)
- `$inputs?` (`Str:D`)
- `$mode?` (`Str:D`)
- `$type?` (`Str:D`)
- `$literal-commas?` (`Bool:D`)
- `%operation`

## tmux command

The tmux commands behind `prompt-async`.

- [`command-prompt`](/en/tmux/latest/manual/command-prompt/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_command_prompt_entry`](/en/tmux/latest/reference/c-variable-cmd_command_prompt_entry/) (attribute)
- [`cmd_command_prompt_exec`](/en/tmux/latest/reference/c-function-cmd-command-prompt-c-cmd_command_prompt_exec/) (function)
