Skip to content

docs: Use 'close' event instead of 'finish' in examples#350

Open
XueHua-s wants to merge 1 commit intoZJONSSON:masterfrom
XueHua-s:master
Open

docs: Use 'close' event instead of 'finish' in examples#350
XueHua-s wants to merge 1 commit intoZJONSSON:masterfrom
XueHua-s:master

Conversation

@XueHua-s
Copy link
Copy Markdown

@XueHua-s XueHua-s commented Dec 5, 2025

This PR updates the getting-started documentation in the README.

Using the 'finish' event can be misleading as it only indicates that the source stream has ended, not that the data has been fully written to the destination. This is a common pitfall for new users of the library.

The 'close' event should be used to guarantee that the file has been completely written to disk.

This change updates the examples in the README to use the correct 'close' event, making the documentation more accurate and preventing potential issues for users.

Using the 'finish' event can be misleading as it only indicates
that the source stream has ended, not that the data has been
fully written to the destination. The 'close' event should be
used to guarantee that the file has been completely written to disk.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant