# LibTmux::Server.command-async

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

```
method command-async(Invocation:D $command, Blob:D :$stdin = Blob.new,
                     Cancellation :$cancel = Cancellation, Bool:D :$check = True --> Promise:D)
```

Copy input before scheduling one guarded command; retain exit status and raw streams.

Copy input before scheduling one guarded command; retain exit status and raw streams.

## Parameters

- `$command` (`Invocation:D`)
- `$stdin?` (`Blob:D`)
- `$cancel?` (`Cancellation`)
- `$check?` (`Bool:D`)
