FtransferableAbortController
Bun

function

util.transferableAbortController

Creates and returns an AbortController instance whose AbortSignal is marked as transferable and can be used with structuredClone() or postMessage().

@returns

A transferable AbortController

Referenced types

class AbortController

A controller object that allows you to abort one or more DOM requests as and when desired.

MDN Reference