Interface: IsolateFunctionOptions
Defined in: src/batteries/isolation/isolate_function.ts:123
Options accepted by isolateFunction.
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 |
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 |