Buckets:
| const { parentPort } = require('worker_threads') | |
| const { Writable } = require('stream') | |
| function run () { | |
| parentPort.once('message', function ({ text, takeThisPortPlease }) { | |
| takeThisPortPlease.postMessage(`received: ${text}`) | |
| }) | |
| return new Writable({ | |
| autoDestroy: true, | |
| write (chunk, enc, cb) { | |
| cb() | |
| } | |
| }) | |
| } | |
| module.exports = run | |
Xet Storage Details
- Size:
- 375 Bytes
- Xet hash:
- 2b3d2bf89fff568b87793f258d8571bd8afc36e8aae2476d2fd5fc87e2c7f330
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.