---
title: "sleep(until:tolerance:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/clock/sleep(until:tolerance:)"
---

# sleep(until:tolerance:)

## Declaration

```swift
func sleep(until deadline: Self.Instant, tolerance: Self.Instant.Duration?) async throws
```
