[whatwg/streams] cocurrent steam (Issue #1188)

I have a requirement to slice large files, read them concurrently, and finally merge them into one file.
```shell
before:
main.js # 5m
after
mian.js.chunk1 1m
main.js.chunk2 1m
main.js.chunk3 1m
mian.js.chunk4 1m
main.js.chunk5 1m
```
I want to know if there is a way to read these five chunks concurrently, and then merge them into a JS file when they are all read, and finally execute it.

Please note that this is a JS file, which must be merged into one file to execute, rather than rendering part of the stream like HTML and image.

Is there any way to do this? Please give me a hint.



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/1188

Received on Friday, 19 November 2021 02:33:38 UTC