Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Fulfill the promise only after last stream is written - #9

Merged
esamattis merged 1 commit into
esamattis:masterfrom
walac:finish-event
Nov 25, 2017
Merged

Fulfill the promise only after last stream is written#9
esamattis merged 1 commit into
esamattis:masterfrom
walac:finish-event

Conversation

@walac

@walac walac commented Nov 17, 2017

Copy link
Copy Markdown
Contributor

When we have a chained pipe operation of N streams, we know we are done
when the last stream emits the 'finish' event, which means data has been
flushed to the media and the end() method was called.

An error on any stream should reject the promise.

When we have a chained pipe operation of N streams, we know we are done
when the last stream emits the 'finish' event, which means data has been
flushed to the media and the end() method was called.

An error on any stream should reject the promise.
@esamattis
esamattis merged commit cb17b5c into esamattis:master Nov 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants