---
title: PoolMachine
description: A type that the Authoring surface names.
---

# `PoolMachine`

Type, in `@jr2/orchestrator/src/pool.ts`. It is type plumbing: it computes a type from the types of a Machine or of its parts, and a workflow module does not write it. The signature of an export, or a type that it names, names this type, so its declaration is here. The [Authoring surface](../authoring-surface.md) page lists each export.

```ts
type PoolMachine<TWorker extends AnyStateMachine, TInput> = StateMachine<
  any,
  any,
  any,
  WrapperActors<"worker", TWorker, "next" | "gate" | "fail">,
  any,
  any,
  any,
  any,
  any,
  TInput,
  PoolOutput,
  any,
  any,
  any
> &
  JR2Wrapper<TWorker>;
```
