grafana_bak/public/app/features/alerting/unified/routeGroupsMatcher.worker.ts
2025-04-01 10:38:02 +09:00

8 lines
338 B
TypeScript

import * as comlink from 'comlink';
import { routeGroupsMatcher } from './routeGroupsMatcher';
// Worker is only a thin wrapper around routeGroupsMatcher to move processing to a separate thread
// routeGroupsMatcher should be used in mocks and tests because it's difficult to tests code with workers
comlink.expose(routeGroupsMatcher);