UNPKG

lazy-js-utils

Version:

A collection of lazy-loaded JavaScript utilities for efficient development

9 lines (7 loc) 315 B
import { createChunk$1 as createChunk } from "../createChunk-CBgu98Zd.js"; //#region src/worker/fileSpliceWorker.ts onmessage = async (e) => { const { file, chunkSize, startIndex, endIndex } = e.data; for (let i = startIndex; i < endIndex; i++) createChunk(file, i, chunkSize).then(postMessage); }; //#endregion