mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 18:25:13 +08:00
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:
1 file changed
+1
-1
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user