@math.gl/tasks
v5.0.6
Published
Typed task scheduling and worker execution
Readme
@math.gl/tasks
Typed task scheduling and worker execution for browsers and Node.js.
npm install @math.gl/tasksimport {TaskRunner} from '@math.gl/tasks';
const runner = new TaskRunner();
try {
const result = await runner.runTask({id: 'double', process: ({value}: {value: number}) => ({value: value * 2})}, {value: 3});
} finally {
await runner.close();
}The public package root provides TaskRunner, task preloading, typed operation dispatch,
and custom worker initialization. Worker transport internals are private. The package
has no runtime dependencies and does not require math.gl core, Arrow, or geospatial.
- Getting started
- API reference
- Task runner example
- Domain tasks remain in
@math.gl/geospatial/tasksand depend on this scheduler.
