---
title: schedule
framework: corefoundation
role: symbol
role_heading: Instance Property
path: corefoundation/cfrunloopsourcecontext/schedule
---

# schedule

A scheduling callback for the run loop source. This callback is called when the source is added to a run loop mode. Can be NULL.

## Declaration

```swift
var schedule: ((UnsafeMutableRawPointer?, CFRunLoop?, CFRunLoopMode?) -> Void)!
```

## Parameters

- `info`: The info member of the doc://com.apple.corefoundation/documentation/CoreFoundation/CFRunLoopSourceContext structure that was used when creating the run loop source.
- `rl`: The run loop in which the source is being scheduled.
- `mode`: The run loop mode in which the source is being scheduled.

## See Also

### Callbacks

- [cancel](corefoundation/cfrunloopsourcecontext/cancel.md)
- [equal](corefoundation/cfrunloopsourcecontext/equal.md)
- [hash](corefoundation/cfrunloopsourcecontext/hash.md)
- [perform](corefoundation/cfrunloopsourcecontext/perform.md)
