Skip to main content
transferableAbortSignal - node__util.d.ts - Node documentation
function transferableAbortSignal
Unstable

Usage in Deno

```typescript import { transferableAbortSignal } from "node:node__util.d.ts"; ```
transferableAbortSignal(signal: AbortSignal): AbortSignal
> [!WARNING] Deno compatibility > This symbol is currently not supported. Marks the given `AbortSignal` as transferable so that it can be used with`structuredClone()` and `postMessage()`. ```js const signal = transferableAbortSignal(AbortSignal.timeout(100)); const channel = new MessageChannel(); channel.port2.postMessage(signal, [signal]); ```

Parameters

signal: AbortSignal
The AbortSignal

Return Type

AbortSignal
The same AbortSignal