+ - **Breaking:** `ActorHost.host` now returns `Effect<ActorRef, never, Scope>` ([#94](https://github.com/cevr/effect-machine/issues/94)). A typed factory failure reaches consumers through `acquire`, and the `host` wait parks until its own generation closes. A factory cause with a defect or an interruption still ends `host`, its typed failures made defects with their annotations kept. If that cause holds a defect, or a typed failure and an interruption, the parent ends with a `Defect` lifecycle. A cause made only of interruptions ends the spawn, and the parent stays in its state. A `host` call on a closed host service dies with `ActorHostClosedError`, and an overlapping `host` dies with `ActorHostOccupiedError`. Migration: replace `actors.host(lease).pipe(<policy>)` with `actors.host(lease)`.
0 commit comments