A TypeScript run queue that schedules and manages async tasks to minimize client-side interactivity disruptions. Current version 0.0.1, early development with frequent releases. Supports configurable max parallelism, work units, continuous work duration, priority levels, per-entry cancellation, and optional delay and never-cancel flags. Provides coordination hooks for React Native via InteractionManager. Differentiators include client-focus, customizable runAfterInteractions, stats tracking, and priority scheduling with fine-grained control over task execution order and cancellation.
npm install std-client-run-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a RunQueue, schedules functions with different priorities and options, checks entry status, waits for results, and cancels all.
Pass a string identifier to new RunQueue('my-queue').Check entry.promise result for ok/canceled/failure status.
Invoke setRunAfterInteractions early in app initialization.
Ensure proper import: import { RunQueue } from 'std-client-run-queue' and instantiate with new RunQueue('id').Use import { CANCELED } from 'std-client-run-queue'.Provide a function that accepts (id: string, func: () => void) and returns a cancel function.
No dependency data recorded yet.