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

  • readonly signal: AbortSignal

    Returns the AbortSignal object associated with this object.

    MDN Reference

  • reason?: any
    ): void;

    Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.

    MDN Reference