Buckets:
| const { Writable } = require('stream') | |
| const parentPort = require('worker_threads').parentPort | |
| async function run (opts) { | |
| return new Writable({ | |
| autoDestroy: true, | |
| write (chunk, enc, cb) { | |
| if (parentPort) { | |
| parentPort.postMessage({ | |
| code: 'EVENT', | |
| name: 'context', | |
| args: opts.$context | |
| }) | |
| } | |
| cb() | |
| } | |
| }) | |
| } | |
| module.exports = run | |
Xet Storage Details
- Size:
- 418 Bytes
- Xet hash:
- 2591f709530bd0b1e7ae2f0e111cb1a8ce60fee5e3234e27f18e5900d39382d6
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.