Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@hearnadam
Copy link
Collaborator

No description provided.

@hearnadam hearnadam merged commit 9e7f6a9 into series/2.x Jun 21, 2025
19 checks passed
@hearnadam hearnadam deleted the zio-infinity branch June 21, 2025 02:31
hearnadam added a commit that referenced this pull request Jun 21, 2025
In #9986, Kyri noticed that `Clock.sleep(Duration.Infinity)` won't be scheduled. This is also true if the Duration is instantiated with `fromNanos` - meaning that `ZIO.infinity` has been (and still is) semantically equivalent to `ZIO.never`.
```
import zio.Duration
Duration.fromNanos(Long.MaxValue) match {
  case Duration.Infinity => "INF"
  case _                 => "NOT"
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants