Merge pull request #3012 from AmirHasanzade/patch-1

Update about.md (change "data" field to "value")
This commit is contained in:
Ilya Kantor 2022-06-18 21:08:14 +03:00 committed by GitHub
commit d6ea9ca115
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -237,8 +237,8 @@ const readableStream = blob.stream();
const stream = readableStream.getReader();
while (true) {
// for each iteration: data is the next blob fragment
let { done, data } = await stream.read();
// for each iteration: value is the next blob fragment
let { done, value } = await stream.read();
if (done) {
// no more data in the stream
console.log('all blob processed.');
@ -246,7 +246,7 @@ while (true) {
}
// do something with the data portion we've just read from the blob
console.log(data);
console.log(value);
}
```