ofReadableStream
and ofWritableStream
respect back-pressure mechanism of NodeJS Streams.highWaterMark: 1
) of the script at one time, then it is piped through asynchronous transformation with mapAsync that will not really transform the data, but rather defer passing it along by 32 ms if a character is not a space. Lastly it gets to stdout as it subscribes whole pipeline. This gives an effect of letters appear in terminal one by one.