@pbroom/color-kit/computeTypes
PlaneComputeScheduler
Routes compute requests to a backend and records timing telemetry.
import type { PlaneComputeScheduler } from '@pbroom/color-kit/compute';types.ts:176interface PlaneComputeScheduler {
run: (request: PlaneComputeRequest) => PlaneComputeResponse;
getTelemetrySnapshot: () => PlaneComputeTelemetrySnapshot;
resetTelemetry: () => void;
}Properties
- run
(request: PlaneComputeRequest) => PlaneComputeResponse - Runs a request and records its total time; the response includes
schedule. - getTelemetrySnapshot
() => PlaneComputeTelemetrySnapshot - Returns a copy of the current telemetry.
- resetTelemetry
() => void - Discards all telemetry buckets.