{"name":"@math.gl/tasks","version":"5.0.2","license":"MIT","_id":"@math.gl/tasks@5.0.2","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":"0674d5504840919cc1ed3866c9987ea43933e5d1","tarball":"http://registry-npm.ywwl.com/@math.gl/tasks/download/@math.gl/tasks-5.0.2.tgz","fileCount":212,"integrity":"sha512-3WAQOn5vLjP5b6PdNaolKCZeFbLsA4/MezkUqbQ+1aJSEz4RA8tvfU48Zmj1LqkNQ7detyrrw0XB1Urcdwp1/A==","signatures":[{"sig":"MEQCIFv+u1Re3HbpSlxtj5vBaC30555/2B0G59qp5rdzQectAiAZDsVELw6LK9jltX8CO5LVM2zXKYocE5D8WgHariQlqw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIDfsUFxZxLwRTt1OkMFsh4wJnwFsG+2MU9x5eXXPmi0HAiAfNryE294G6wYbKMRJTmb3rawVhbGH1Wq/2RLRtyt4ZQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@math.gl%2ftasks@5.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":878690,"size":194874,"noattachment":false,"key":"/@math.gl/tasks/-/@math.gl/tasks-5.0.2.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":"2436ec3786dc6e04164a69200c4156d3ea3fa8df","_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.2_1795438545189_0.49392132287374657","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":1795438545302,"_cnpm_publish_time":1795438545302,"dist-tags":{"beta":"5.0.0-rc.2","latest":"5.0.4"}}