# libtmux.runtime.nvim.start

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

```
start: fun(
  fn: fun(runtime: libtmux.Runtime):<T>?, libtmux.Error?,
  on_done: fun(value?: <T>, err?: libtmux.Error),
  options?: libtmux.RuntimeOptions,
):libtmux.Runtime?, libtmux.Error|libtmux.Request<T>
```

Inline generics preserve the body callback's contextual type in LuaLS.

## Parameters

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

## Guides

Pages that discuss `start`.

- [Runtime ownership](/en/lua/v0.1.1/guides/runtime/)
