Skip to content

Commit cae72ec

Browse files
committed
change callback to event
1 parent a913f4d commit cae72ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

week-5/streamsAndBuffers/streams-buffers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#### Streams
2323
- Streams are a form of **partially buffered access**
24-
- Streams return small pieces of data (using a buffer) and trigger a callback when each new piece of data is available for processing
24+
- Streams return small pieces of data (using a buffer) and trigger an event when each new piece of data is available for processing
2525
- Since streams are partially buffered, we can process each piece of data **as soon as it is read** - this means we don't necessarily need to buffer / save the whole file into memory
2626
- The Node stream interface consists of two parts:
2727
- Readable streams

0 commit comments

Comments
 (0)