# LibTmux::Async::ControlConnection#exchange

- **Module:** LibTmux::Async
- **Package:** libtmux-async
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/c8b839595d5a30e271e3f9be0d0fe811ddb11b7e/gems/libtmux/lib/libtmux/control.rb#L432
- **Public owner:** LibTmux::ControlConnection#exchange
- **Page:** https://libtmux.org/en/ruby/v0.1.0/reference/libtmux-async-controlconnection-exchange/

```
def exchange: (
  ::String,
  ?timeout: ::Numeric,
  ?cancel: untyped
) -> ::LibTmux::GuardedReply
```

Behavior: Control connections.

Behavior contract: Control connections.

## Parameters

- `arg1` (`::String`)
- `timeout` (`::Numeric`)
- `cancel` (`untyped`)
