doc: fix AbortSignal example for stream.Readable
PR-URL: https://github.com/nodejs/node/pull/36596 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
This commit is contained in:
parent
d90fa196c5
commit
2723d2db7e
@ -2380,7 +2380,7 @@ Calling `abort` on the `AbortController` corresponding to the passed
|
||||
on the readable created.
|
||||
|
||||
```js
|
||||
const fs = require('fs');
|
||||
const { Readable } = require('stream');
|
||||
const controller = new AbortController();
|
||||
const read = new Readable({
|
||||
read(size) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user