# LibTmux::Model::ClientRef.confirm-async

- **Module:** LibTmux::Model
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Client.rakumod#L237
- **Inherited from:** LibTmux::Client::ClientTarget
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-model-clientref-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)

## In other ports

Ask a client to confirm before running a command

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Server.confirm_before`](/en/py/latest/reference/libtmux-server-confirm_before/) (method) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | no equivalent on `Server` |
| Rust | no equivalent on `Server` |
| Go | [`tmux.Server.ConfirmBefore`](/en/go/latest/reference/tmux-server-confirmbefore/) (method) |
| Java | no equivalent on `Server` |
| C# | [`LibTmux.Server.ConfirmBeforeAsync`](/en/csharp/latest/reference/libtmux-server-confirmbeforeasync/) (method) |
| C++ | no equivalent on `Server` |
| Swift | no equivalent on `Server` |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands. |

No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.
