# libtmux.runtime.luv.run

- **Module:** libtmux.runtime
- **Package:** libtmux
- **Language:** Lua
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-lua/blob/d68f829fe097e38dcbbf7147e276666fe615f0cf/lua/libtmux/runtime/luv.lua#L115
- **Page:** https://libtmux.org/en/lua/v0.1.1/reference/libtmux-runtime-luv-run/

```
run: fun(
  fn: fun(runtime: libtmux.Runtime):<T>?, libtmux.Error?,
  options: libtmux.RuntimeOptions?,
):<T>?, libtmux.Error?
```

## Parameters

- `fn` (`fun(runtime: libtmux.Runtime):<T>?, libtmux.Error?`)
- `options` (`libtmux.RuntimeOptions?`)

## Guides

Pages that discuss `run`.

- [Runtime ownership](/en/lua/v0.1.1/guides/runtime/)
- [Capture server state](/en/lua/v0.1.1/guides/snapshots/)
