⚠️ Internal: This API is not publically exported by the package.

      Interface StreamOptions<T>

      interface StreamOptions {
          autoDestroy?: boolean;
          emitClose?: boolean;
          highWaterMark?: number;
          objectMode?: boolean;
          signal?: AbortSignal;
          construct?(this, callback): void;
          destroy?(this, error, callback): void;
      }

      Type Parameters

      Hierarchy

      Methods

      • Parameters

        • this: T
        • callback: ((error?) => void)
            • (error?): void
            • Parameters

              Returns void

        Returns void

      • Parameters

        • this: T
        • error: Error
        • callback: ((error?) => void)
            • (error?): void
            • Parameters

              Returns void

        Returns void

      Properties

      autoDestroy?: boolean
      emitClose?: boolean
      highWaterMark?: number
      objectMode?: boolean
      signal?: AbortSignal

      When provided the corresponding AbortController can be used to cancel an asynchronous action.