# Worker

`import { Worker } from "destack:runtime";`

Live worker.

```ds title="Worker"
export class Worker {
    handle: WorkerHandle;
    id: WorkerId;
    runtime: RuntimeId;
    name: string;
    hasPendingWork: boolean;
    labels: [Label];
}
```

[language/library/src/runtime/world.ds:144:171](https://github.com/destack-sh/destack/blob/main/language/library/src/runtime/world.ds#L144-L171)

## Members

### `handle: WorkerHandle`

Worker handle.

### `id: WorkerId`

Worker identifier.

### `runtime: RuntimeId`

Owning runtime.

### `name: string`

Optional worker name.

### `hasPendingWork: boolean`

Whether the worker has pending work.

### `labels: [Label]`

Worker labels.
