阅读背景:

将数据管道化为尚未准备好接收数据的可写流

来源:互联网 

Is there a way to connect a readable stream to a writable stream in Node.js, where the writable is not ready to receive data yet? In other words, I'd like to connect the readable with the writable, but I want to initialize the writable, including defining the write method, at a later point in the program. Perhaps we must implement the write method, but is there a way to pause a writable stream in similar way in which you can pause a readable stream? Or perhaps we can use an intermediate through/transform stream and buffer the data there, before we pipe the data to the writable!Is there a way to connect a readable stream to




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: