---
title: "CFRunLoopContainsTimer(_:_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfrunloopcontainstimer(_:_:_:)"
---

# CFRunLoopContainsTimer(_:_:_:)

Returns a Boolean value that indicates whether a run loop mode contains a particular CFRunLoopTimer object.

## Declaration

```swift
func CFRunLoopContainsTimer(_ rl: CFRunLoop!, _ timer: CFRunLoopTimer!, _ mode: CFRunLoopMode!) -> Bool
```

## Parameters

- `rl`: The run loop to examine.
- `timer`: The run loop timer for which to search.
- `mode`: The run loop mode of rl in which to search for timer. Use the constant doc://com.apple.corefoundation/documentation/CoreFoundation/CFRunLoopMode/commonModes to search for timer in the set of objects monitored by all the common modes.

## Return Value

Return Value true if timer is in mode mode of the run loop rl, false otherwise.

## Discussion

Discussion If timer was added to commonModes, this function returns true if mode is either commonModes or any of the modes that has been added to the set of common modes.

## See Also

### Managing Timers

- [CFRunLoopAddTimer(_:_:_:)](corefoundation/cfrunloopaddtimer(_:_:_:).md)
- [CFRunLoopGetNextTimerFireDate(_:_:)](corefoundation/cfrunloopgetnexttimerfiredate(_:_:).md)
- [CFRunLoopRemoveTimer(_:_:_:)](corefoundation/cfrunloopremovetimer(_:_:_:).md)
