Closed danwdart closed 8 years ago
Hi
Is it possible to emit an 'end' event, or better, support promises? I'd like to know when the stream has ended so I can resolve a promise and pass the finished data.
Cheers
Yup you can. feedparser emits end event. I'm using this event to resolve my own Promise method.
end
See fetch function on this example
fetch
Lovely, thanks!
Hi
Is it possible to emit an 'end' event, or better, support promises? I'd like to know when the stream has ended so I can resolve a promise and pass the finished data.
Cheers