---
title: ReadableStreamGenericReader
url: https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/globals/interface.ReadableStreamGenericReader/
---

**Kind:** Interface  
**Module:** [globals](https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/globals/)  
**Package:** @fastly/js-compute 4.0.1  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/globals.d.ts#L1918

## Properties

### closed

**Type:** `Promise<undefined>`  
**Flags:** read-only  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/globals.d.ts#L1919

## Methods

### cancel

**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/globals.d.ts#L1920

```javascript
cancel(reason?: any): Promise<void>
```

**Parameters**

- `reason`: `any` (optional)

**Returns**

`Promise<void>`
