| 1 | "effect/Clock#CancelToken": |
| 2 | replacement: "none" |
| 3 | note: "The public clock scheduler and cancellation-token protocol were removed. Use Effect.sleep for delays and Effect interruption or Fiber.interrupt for cancellation." |
| 4 | "effect/Clock#Clock": |
| 5 | replacement: "Clock.Clock" |
| 6 | note: "The service interface remains, but unsafeCurrentTimeMillis and unsafeCurrentTimeNanos were renamed to currentTimeMillisUnsafe and currentTimeNanosUnsafe, the public type-id field was removed, and custom implementations must add monotonicTimeNanosUnsafe plus monotonicTimeNanos for elapsed-time measurement." |
| 7 | "effect/Clock#ClockScheduler": |
| 8 | replacement: "none" |
| 9 | note: "The low-level clock scheduler is no longer public. Express scheduling with Effect.sleep and cancel the running fiber through normal Effect interruption." |
| 10 | "effect/Clock#ClockTypeId": |
| 11 | replacement: "none" |
| 12 | note: "The Clock type-id is private in v4. Use the Clock.Clock Context.Reference to access, provide, or identify the clock service." |
| 13 | "effect/Clock#make": |
| 14 | replacement: "Layer.succeed(Clock.Clock, clock)" |
| 15 | note: "The Clock constructor was removed. Implement the v4 Clock interface as a plain service value and provide it through Clock.Clock." |
| 16 | "effect/Clock#Task": |
| 17 | replacement: "none" |
| 18 | note: "The low-level clock task alias was removed with ClockScheduler. Model delayed work as an Effect and run or fork it after Effect.sleep." |