---
title: "sleep(until:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/thread/sleep(until:)"
---

# sleep(until:)

Blocks the current thread until the time specified.

## Declaration

```swift
class func sleep(until date: Date)
```

## Parameters

- `date`: The time at which to resume processing.

## Discussion

Discussion No run loop processing occurs while the thread is blocked.

## See Also

### Related Documentation

- [current](foundation/thread/current.md)

### Stopping a Thread

- [sleep(forTimeInterval:)](foundation/thread/sleep(fortimeinterval:).md)
- [exit()](foundation/thread/exit().md)
- [cancel()](foundation/thread/cancel().md)
