---
title: "schedule(options:_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/operationqueue/schedule(options:_:)"
---

# schedule(options:_:)

Performs the action at the next possible opportunity.

## Declaration

```swift
func schedule(options: OperationQueue.SchedulerOptions?, _ action: @escaping () -> Void)
```

## See Also

### Scheduling Operations

- [schedule(after:tolerance:options:_:)](foundation/operationqueue/schedule(after:tolerance:options:_:).md)
- [schedule(after:interval:tolerance:options:_:)](foundation/operationqueue/schedule(after:interval:tolerance:options:_:).md)
- [now](foundation/operationqueue/now.md)
- [minimumTolerance](foundation/operationqueue/minimumtolerance.md)
- [OperationQueue.SchedulerTimeType](foundation/operationqueue/schedulertimetype.md)
- [OperationQueue.SchedulerOptions](foundation/operationqueue/scheduleroptions.md)
