# Libtmux_unix.Operation.cancel

- **Module:** Libtmux_unix
- **Package:** libtmux-unix
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/unix/libtmux_unix.mli#L141
- **Public owner:** Libtmux_unix
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux_unix-operation-cancel/

```
val cancel : 'a t -> (unit, Libtmux.Error.t) result
```

Remove queued work before it is written. Admitted commands retain their owner and are drained by [`Client.await`](/en/ocaml/latest/reference/libtmux_unix-client-await/); cancellation does not undo effects. Returns `Busy` while another blocking caller owns the client; use a [`Cancellation.t`](/en/ocaml/latest/reference/libtmux_unix-cancellation-t/) token to interrupt that caller.

## Parameters

- `arg1` (`'a t`)
