Friday, 12 May 2017

Async operation while processing stream

I need some help,

I need to read a file as a stream and on the first chunk I need to create a database table which is an async operation. So what I'd like to do is creating a duplex/transformer stream which would create the table when we are processing the start of the file but otherwise work as a normal stream.

Is this possible?



via Jim-Y

No comments:

Post a Comment