It is not essential in the sense that you can already do something similar
by listening to the 'finish' event. However observing oneself is a strange
pattern. but one implentation of _flush could easily be:
this.on('finish', this._flush);
is that correct ?
On Tuesday, 16 April 2013 19:53:17 UTC+2, Liam wrote:
>
> So _flush would be called when .end() is called by the client of the
> writable stream?
>
> That seems like an essential feature of a writable stream.
>
>
> On Tue, Apr 16, 2013 at 8:40 AM, Isaac Schlueter <[email protected]<javascript:>
> > wrote:
>
>> We could move this into Writable pretty easily. It's an API change, but
>> certainly not unreasonable for 0.12, since it wouldn't be a breaking
>> change.
>>
>>
>> On Monday, April 15, 2013, Nathan Rajlich wrote:
>>
>>> FWIW I volleyed for _flush() to be part of the Writable API directly,
>>> rather than Transform, before streams2 were solidified. I had the use-case
>>> at the time and apparently Liam does as well. C'est la vie.
>>>
>>
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.