Interface DestroyableIoInterface

A destroyable IoInterface, mainly for iframe and web worker communication Used for cleaning up resources, e.g. MessageChannel

interface DestroyableIoInterface {
    name: string;
    destroy(): void;
    read(): Promise<
        | null
        | string
        | Buffer
        | Uint8Array>;
    signalDestroy(): void;
    write(data: string): Promise<void>;
}

Hierarchy (view full)

Implemented by

Properties

Methods

Properties

name: string

Methods

  • Returns Promise<
        | null
        | string
        | Buffer
        | Uint8Array>