# Interface ReadableStreamGenericReader

interface ReadableStreamGenericReader {
closed: Promise<undefined>;
cancel(reason?: any): Promise<void>;
}

#### Hierarchy (view full)

- ReadableStreamGenericReader
  - ReadableStreamBYOBReader
  - ReadableStreamDefaultReader

- Defined in node_modules/@types/node/stream/web.d.ts:99

#####
Index

### Properties

closed

### Methods

cancel

##
Properties

### `Readonly` closed

closed: Promise<undefined>

- Defined in node_modules/@types/node/stream/web.d.ts:100

##
Methods

### cancel

- cancel(reason?): Promise<void>

- #### Parameters

  - `Optional` reason: any

  #### Returns Promise<void>

  - Defined in node_modules/@types/node/stream/web.d.ts:101