Files
effect/migration/annotations/effect__Supervisor.yaml

31 lines
2.3 KiB
YAML

effect/Supervisor#AbstractSupervisor:
replacement: "Supervisor.Supervisor"
note: "Implement the `Supervisor.Supervisor` interface with an object literal or a class; there is no abstract base class."
effect/Supervisor#addSupervisor:
replacement: "Supervisor.layer"
note: "`Supervisor.layer` adds a Supervisor to the one in place, as `addSupervisor` did. Under a built `ManagedRuntime` it observes the root fibers; under `Layer.launch` or a platform `runMain` only forks, so use `Effect.withSupervisor` around `main`."
effect/Supervisor#fibersIn:
replacement: "FiberSet"
note: "Use a scoped FiberSet and explicitly run or add fibers. To observe every descendant instead, install a `Supervisor.Supervisor` and keep a set in `onStart`/`onEnd`."
effect/Supervisor#fromEffect:
replacement: "none"
note: "The Supervisor abstraction and its effect-valued observation hook were removed."
effect/Supervisor#none:
replacement: "undefined"
note: "There is no no-op Supervisor: `undefined` means none. Provide `undefined` to `Supervisor.Supervisor` to opt a region's forks out."
effect/Supervisor#Supervisor:
replacement: "Supervisor.Supervisor"
note: "Now a plain interface with four required methods, `onStart`, `onEnd`, `onBlock` and `onUnblock`, and no `value` or `zip`. `onSuspend`/`onResume` became `onBlock`/`onUnblock`, which fire only when a fiber waits, never when it yields. There is no `onEffect`: use `Tracer.context` for per-operation interposition. `Supervisor.Supervisor` is also the reference that installs one."
effect/Supervisor#Supervisor.Variance:
replacement: "none"
note: "The Supervisor abstraction and its variance marker were removed."
effect/Supervisor#SupervisorTypeId:
replacement: "none"
note: "The Supervisor abstraction and its type identifier were removed."
effect/Supervisor#track:
replacement: "none"
note: "There is no built-in tracking Supervisor. Keep a `Set` of fibers in `onStart`/`onEnd` of a `Supervisor.Supervisor` (holding them weakly if they may block forever), or use `FiberSet` for fibers you fork yourself."
effect/Supervisor#unsafeTrack:
replacement: "none"
note: "There is no built-in tracking Supervisor. Keep a `Set` of fibers in `onStart`/`onEnd` of a `Supervisor.Supervisor`, or use `FiberSet` for fibers you fork yourself."