Function isStreamClosedError

  • Check if an error is a stream closed error that can be safely ignored during cleanup. This happens during handover/cleanup when close() is called while operations are still running.

    Parameters

    • error: unknown

      The error to check.

    Returns boolean

    True if the error is a stream closed error.