# attachPivotWorker (@salmonui/pivot-table/engine/worker)

> The attachPivotWorker function of @salmonui/pivot-table/engine/worker: Serves the pivot protocol on scope; returns a detach function.

Canonical: https://salmonui.dev/docs/reference/pivot-table/engine-worker/attachPivotWorker

```ts
import { attachPivotWorker } from '@salmonui/pivot-table/engine/worker';
```

Entry index: https://salmonui.dev/docs/reference/pivot-table/engine-worker (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/pivot-table/engine-worker.md).

## Reference

Kind: function

```ts
function attachPivotWorker(scope: WorkerScopeLike): () => void;
```

Serves the pivot protocol on `scope`; returns a detach function.
