Skip to content

Documentation writable stream example confusing order #30759

Closed
@GrosSacASac

Description

@GrosSacASac
writer.on('finish', () => {
  console.log('All writes are now complete.');
});

should be before

writer.end('This is the end\n');

https://nodejs.org/api/stream.html#stream_event_finish

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.streamIssues and PRs related to the stream subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions