# Interface ReadableStreamBYOBReader

MDN Reference

interface ReadableStreamBYOBReader {
closed: Promise<undefined>;
cancel(reason?: any): Promise<void>;
read<T>(view: T): Promise<ReadableStreamReadResult<T>>;
releaseLock(): void;
}

#### Hierarchy (view full)

- ReadableStreamGenericReader
  - ReadableStreamBYOBReader

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

#####
Index

### Properties

closed

### Methods

cancel
read
releaseLock

##
Properties

### `Readonly` closed

closed: Promise<undefined>

Inherited from ReadableStreamGenericReader.closed

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

##
Methods

### cancel

- cancel(reason?): Promise<void>

- #### Parameters

  - `Optional` reason: any

  #### Returns Promise<void>

  Inherited from ReadableStreamGenericReader.cancel

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

### read

- read<T>(view): Promise<ReadableStreamReadResult<T>>

- MDN Reference

  #### Type Parameters

  - T extends ArrayBufferView

  #### Parameters

  - view: T

  #### Returns Promise<ReadableStreamReadResult<T>>

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

### releaseLock

- releaseLock(): void

- MDN Reference

  #### Returns void

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