Skip to main content

transferableAbortSignal

function transferableAbortSignal
unstable
Jump to headingtransferableAbortSignal(signal: AbortSignal): AbortSignal

Deno compatibility

This symbol is currently not supported.

Marks the given AbortSignal as transferable so that it can be used withstructuredClone() and postMessage().

const signal = transferableAbortSignal(AbortSignal.timeout(100));
const channel = new MessageChannel();
channel.port2.postMessage(signal, [signal]);

Parameters Jump to heading

Jump to headingsignal: AbortSignal

The AbortSignal

Return Type Jump to heading

AbortSignal

The same AbortSignal

Back to top