Bun

interface

stream.promises.FinishedOptions

interface FinishedOptions

  • cleanup?: boolean

    If true, removes the listeners registered by this function before the promise is fulfilled.

  • error?: boolean
  • readable?: boolean
  • signal?: AbortSignal

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

  • writable?: boolean