---
title: beforeWaiting
framework: corefoundation
role: symbol
role_heading: Type Property
path: corefoundation/cfrunloopactivity/beforewaiting
---

# beforeWaiting

## Declaration

```swift
static var beforeWaiting: CFRunLoopActivity { get }
```

## Discussion

Discussion Inside the event processing loop before the run loop sleeps, waiting for a source or timer to fire. This activity does not occur if CFRunLoopRunInMode(_:_:_:) is called with a timeout of 0 seconds. It also does not occur in a particular iteration of the event processing loop if a version 0 source fires.

## See Also

### Constants

- [entry](corefoundation/cfrunloopactivity/entry.md)
- [beforeTimers](corefoundation/cfrunloopactivity/beforetimers.md)
- [beforeSources](corefoundation/cfrunloopactivity/beforesources.md)
- [afterWaiting](corefoundation/cfrunloopactivity/afterwaiting.md)
- [exit](corefoundation/cfrunloopactivity/exit.md)
- [allActivities](corefoundation/cfrunloopactivity/allactivities.md)
