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

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

```
method confirm-async(Invocation:D $command, Positive:D :$timeout-ms!,
                         Str:D :$prompt = 'Confirm? (y/n)', *%operation --> Promise:D)
```

Ask confirmation before one Invocation. A refusal is returned as a Result.

Ask confirmation before one Invocation. A refusal is returned as a Result.

## Parameters

- `$command` (`Invocation:D`)
- `$timeout-ms` (`Positive:D`)
- `$prompt?` (`Str:D`)
- `%operation`

## tmux command

The tmux commands behind `confirm-async`.

- [`confirm-before`](/en/tmux/latest/manual/confirm-before/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_confirm_before_entry`](/en/tmux/latest/reference/c-variable-cmd_confirm_before_entry/) (attribute)
- [`cmd_confirm_before_exec`](/en/tmux/latest/reference/c-function-cmd-confirm-before-c-cmd_confirm_before_exec/) (function)
