---
title: \@qwik.dev/qwik/worker API Reference
---

# [API](/api) &rsaquo; @qwik.dev/qwik/worker

<h2 id="worker_">worker$</h2>

```typescript
worker$: <T extends WorkerFunction>(qrl: T) => QRL<T>;
```

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

qrl

</td><td>

T

</td><td>

</td></tr>
</tbody></table>

**Returns:**

QRL&lt;T&gt;

[Edit this section](https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/web-worker/worker-qrl.ts)

<h2 id="workerconstructorqrl">WorkerConstructorQRL</h2>

```typescript
export interface WorkerConstructorQRL
```

[Edit this section](https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/web-worker/worker-qrl.ts)

<h2 id="workerfunction">WorkerFunction</h2>

```typescript
export interface WorkerFunction
```

[Edit this section](https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/web-worker/worker-qrl.ts)

<h2 id="workerqrl">workerQrl</h2>

```typescript
workerQrl: WorkerConstructorQRL;
```

[Edit this section](https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/web-worker/worker-qrl.ts)
