Created
December 23, 2020 17:07
-
-
Save kmoskwiak/37a3363a011cc4371b572cf21413cb80 to your computer and use it in GitHub Desktop.
read main loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CHUNK_SIZE = 10000000; // 10MB | |
async function main() { | |
for await(const chunk of generateChunks('./file', CHUNK_SIZE)) { | |
// do someting with data | |
} | |
} | |
main(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment