# std lib sleep APIs: add doc comments and no @intCast · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/09cbcf8841a0b80cdbdf40c2b48acccbaa945ce8)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 09cbcf8841a0b80cdbdf40c2b48acccbaa945ce8

Requested commit: 09cbcf8841a0b80cdbdf40c2b48acccbaa945ce8

Commit: 09cbcf8841a0b80cdbdf40c2b48acccbaa945ce8

Tree: deda8f8f46e2033b1f6c3d19d8e2b52ae1fab9e6

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std lib sleep APIs: add doc comments and no @intCast

The sleep APIs are now documented as having spurious wakeups and no
precision of timing guaranteed. They also cannot fail. This commit makes
the entire range of u64 legal values to pass to std.os.time.sleep and
std.os.time.posixSleep. Values that do not fit in the native system APIs
will cause a sleep for the longest possible duration and then be handled
as a spurious wakeup.

```

## Parents

- [70a9ee3dd68d8ed28a9fd2dc29f6c88fee5d789e](https://git.cafe/gitcafe/zig/commit/70a9ee3dd68d8ed28a9fd2dc29f6c88fee5d789e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/09cbcf8841a0b80cdbdf40c2b48acccbaa945ce8?format=markdown)
