# LibTmux::Server.open-control-async

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

```
method open-control-async(SessionId:D :$session-id!, :$new-layouts = 'auto',
                          Cancellation :$cancel = Cancellation --> Promise:D)
```

Resolve a separately owned verified control connection; the caller must close it.

Resolve a separately owned verified control connection; the caller must close it.

## Parameters

- `$session-id` (`SessionId:D`)
- `$new-layouts?`
- `$cancel?` (`Cancellation`)

## tmux command

The tmux commands behind `open-control-async`.

- [`attach-session`](/en/tmux/latest/manual/attach-session/)
- [`refresh-client`](/en/tmux/latest/manual/refresh-client/) (new-layouts negotiation is enabled)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_attach_session_entry`](/en/tmux/latest/reference/c-variable-cmd_attach_session_entry/) (attribute)
- [`cmd_attach_session_exec`](/en/tmux/latest/reference/c-function-cmd-attach-session-c-cmd_attach_session_exec/) (function)
- [`cmd_refresh_client_entry`](/en/tmux/latest/reference/c-variable-cmd_refresh_client_entry/) (attribute)
- [`cmd_refresh_client_exec`](/en/tmux/latest/reference/c-function-cmd-refresh-client-c-cmd_refresh_client_exec/) (function)
