{"name":"@math.gl/tasks","version":"5.0.3","license":"MIT","_id":"@math.gl/tasks@5.0.3","maintainers":[{"name":"ibgreen","email":"ib@unfolded.ai"},{"name":"pessimistress","email":"cxiaoji@gmail.com"}],"homepage":"https://github.com/visgl/math.gl#readme","bugs":{"url":"https://github.com/visgl/math.gl/issues"},"dist":{"shasum":"d1b4b8c8b409983ba0d72a2acd2020bd1fc33d41","tarball":"http://registry-npm.ywwl.com/@math.gl/tasks/download/@math.gl/tasks-5.0.3.tgz","fileCount":212,"integrity":"sha512-iwUww9/COjFXmbWBWJSelwY60CxbUX1xXgo6CkGefTyLhhLEiBYxJa0NrNVQXxDPth71QRY0KO6PT15aXBOmFw==","signatures":[{"sig":"MEUCIQDS2V0P8kiGAfbLuFGcXKZrT7yxhB3sj3h8wrYyJd7uygIgK1RLywbJGGWXS+uGMn9+rn6Xfj3/3Sh17/IaZPbQKqQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIHF9CnzWKeoITRM7WA2pLsB9J0PCnx2gI5+oHTV+sziBAiEAvxLRRUGE5hj8aDdlGfdvmY7OTvhvFBVVyYMgH7Z5hOQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@math.gl%2ftasks@5.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":878690,"size":194874,"noattachment":false,"key":"/@math.gl/tasks/-/@math.gl/tasks-5.0.3.tgz"},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","browser":{"fs":false,"path":false,"module":false,"child_process":false,"./src/worker-utils/lib/node/worker_threads.ts":"./src/worker-utils/lib/node/worker_threads-browser.ts","./dist/worker-utils/lib/node/worker_threads.js":"./dist/worker-utils/lib/node/worker_threads-browser.js","./src/worker-utils/lib/process-utils/child-process-proxy.ts":"./src/worker-utils/lib/process-utils/child-process-proxy.browser.ts","./dist/worker-utils/lib/process-utils/child-process-proxy.js":"./dist/worker-utils/lib/process-utils/child-process-proxy.browser.js"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"fde93fb2b161a9c22dc513feff1f329392f128de","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"9fdb3200-9a4a-4710-bc08-566f2315c955"}},"repository":{"url":"git+https://github.com/visgl/math.gl.git","type":"git"},"_npmVersion":"lerna/10.1.2/node@v24.22.1+x64 (linux)","description":"Typed task scheduling and worker execution","directories":{},"sideEffects":false,"_nodeVersion":"24.22.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/tasks_5.0.3_1795547573726_0.9654382430712609","host":"s3://npm-registry-packages-npm-production"},"readme":"# @math.gl/tasks\n\nTyped task scheduling and worker execution for browsers and Node.js.\n\n```sh\nnpm install @math.gl/tasks\n```\n\n```typescript\nimport {TaskRunner} from '@math.gl/tasks';\n\nconst runner = new TaskRunner();\ntry {\n  const result = await runner.runTask({id: 'double', process: ({value}: {value: number}) => ({value: value * 2})}, {value: 3});\n} finally {\n  await runner.close();\n}\n```\n\nThe public package root provides `TaskRunner`, task preloading, typed operation dispatch,\nand custom worker initialization. Worker transport internals are private. The package\nhas no runtime dependencies and does not require math.gl core, Arrow, or geospatial.\n\n- [Getting started](https://math.gl/docs/modules/tasks)\n- [API reference](https://math.gl/docs/modules/tasks/api-reference/task-runner)\n- [Task runner example](../../examples/tasks/task-runner/README.md)\n- Domain tasks remain in `@math.gl/geospatial/tasks` and depend on this scheduler.\n","publish_time":1795547573881,"_cnpm_publish_time":1795547573881,"dist-tags":{"beta":"5.0.0-rc.2","latest":"5.0.4"}}