---
url: https://lit-ui-router.dev/api/lit-ui-router-effect/interfaces/RefRuntime.md
---
[lit-ui-router-effect](../index.md) / RefRuntime

# Interface: RefRuntime

Defined in: [lit-ui-router-effect/src/ref-controller.ts:19](https://github.com/simshanith/lit-ui-router/blob/92660184d9980e90964f7e785d5efeb5cae43b42/packages/lit-ui-router-effect/src/ref-controller.ts#L19)

The slice of a runtime the controllers need. `Effect.runFork` /
`Effect.runSync` on the default runtime unless one is given; a
[`ManagedRuntime<R>`](https://effect.website/docs/runtime/#managedruntime)
satisfies it because the controllers' effects require nothing from `R`. It runs the controllers' own fibers; it does not provide
services to a selector, which stays a plain function over the values.

## Properties

| Property | Modifier | Type | Description | Defined in |
| ------ | ------ | ------ | ------ | ------ |
|  `runFork` | `readonly` | (`effect`, `options?`) => [`Fiber`](https://effect.website/docs/concurrency/fibers/)<`unknown`, `unknown`> | starts an effect on a fiber the controller interrupts on disconnect, on `options.scheduler` when given | [lit-ui-router-effect/src/ref-controller.ts:24](https://github.com/simshanith/lit-ui-router/blob/92660184d9980e90964f7e785d5efeb5cae43b42/packages/lit-ui-router-effect/src/ref-controller.ts#L24) |
|  `runSync` | `readonly` | <`A`>(`effect`) => `A` | runs a synchronous effect, used to read a ref's current value | [lit-ui-router-effect/src/ref-controller.ts:29](https://github.com/simshanith/lit-ui-router/blob/92660184d9980e90964f7e785d5efeb5cae43b42/packages/lit-ui-router-effect/src/ref-controller.ts#L29) |
