{"_id":"@math.gl/tasks@5.0.0-beta.5","bugs":{"url":"https://github.com/visgl/math.gl/issues"},"dist":{"shasum":"51cf4d0d677521c1ff30658c0a572b995f5afd44","tarball":"http://registry-npm.ywwl.com/@math.gl/tasks/download/@math.gl/tasks-5.0.0-beta.5.tgz","fileCount":212,"integrity":"sha512-JmsQMUtyBWp+eysANnpaQQttNpJY0Ff7Xu3LvRRjiqkxQ6ZXJd7Z8XJW62pa0yWwickvSkiygVPtlr0Sbz8B3Q==","signatures":[{"sig":"MEUCIGYhAn0JjII1mB/VDXs5M/2e9kgxRjeg2rL2x2Wm20pfAiEA23KqJFPuMALSQDEYVxpIsvV0NcWecANpr4vU7D5Ew4E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIE5JOlD7M2T4dIG5RO1/AKaZYhJfgWbBjuNh9JoefQLCAiBlhujvrC4vSQ7G/DHHmlCzudTdXhT0mHP13G8PgrHAQg=="}],"unpackedSize":878670,"size":192054,"noattachment":false,"key":"/@math.gl/tasks/-/@math.gl/tasks-5.0.0-beta.5.tgz"},"main":"dist/index.cjs","name":"@math.gl/tasks","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"}},"license":"MIT","version":"5.0.0-beta.5","_npmUser":{"name":"ibgreen","email":"ib@unfolded.ai"},"homepage":"https://github.com/visgl/math.gl#readme","repository":{"url":"git+https://github.com/visgl/math.gl.git","type":"git"},"_npmVersion":"10.9.9","description":"Typed task scheduling and worker execution","directories":{},"maintainers":[{"name":"ibgreen","email":"ib@unfolded.ai"},{"name":"pessimistress","email":"cxiaoji@gmail.com"}],"sideEffects":false,"_nodeVersion":"22.23.4","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tasks_5.0.0-beta.5_1794149806994_0.9011926420179873"},"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":1794149807100,"_cnpm_publish_time":1794149807100,"dist-tags":{"beta":"5.0.0-rc.2","latest":"5.0.4"}}