···19192020## `assign()`
21212222-Stamps a `WorkerHandle` onto a task and returns it. The task's type is preserved.
2222+Returns a copy of the task pinned to a specific worker. The original task is unchanged.
23232424```ts
2525function assign<T>(worker: WorkerHandle, task: Task<T>): Task<T>;
2626function assign<T>(worker: WorkerHandle, task: StreamTask<T>): StreamTask<T>;
2727```
28282929-Internally sets `task.worker = worker` and returns the same object.
2929+Internally creates a new instance with the same `id` and `args`, sets `worker` on the copy, and returns it.
30303131## `Task` / `StreamTask` Changes
3232