---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/interfaces/IsolateFunctionOptions.md
description: 'Options accepted by [`isolateFunction`](https://adk.nht.io/api/@nhtio/adk/batteries/functions/isolateFunction).'
---

# Interface: IsolateFunctionOptions

Defined in: [src/batteries/isolation/isolate\_function.ts:123](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/isolation/isolate_function.ts#L123)

Options accepted by [isolateFunction](../functions/isolateFunction.md).

## Remarks

`allowSourceRehydration` MUST be the literal `true` — both at the type level (a widened `boolean`
fails to type-check) and at runtime (checked explicitly, so an untyped/`as any` call site cannot skip
the acknowledgement). See this module's doc comment for what that acknowledgement means.

## Properties

| Property                                                              | Type     | Description                                                                                                                                                                              | Defined in                                                                                                                                              |
| --------------------------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
|  `allowSourceRehydration` | `true`   | Explicit, non-optional acknowledgement that this function's source will be rehydrated via `new Function` inside a Worker — an eval-equivalent trust surface. Must be the literal `true`. | [src/batteries/isolation/isolate\_function.ts:126](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/isolation/isolate_function.ts#L126) |
|  `name?`                                    | `string` | A developer-facing name, used in thrown exception messages and the Worker's `name` option. Defaults to `fn.name` (or `'anonymous'` when the function itself has no name).                | [src/batteries/isolation/isolate\_function.ts:129](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/isolation/isolate_function.ts#L129) |
