---
title: "perform(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/runloop/perform(_:)"
---

# perform(_:)

Schedules a block that the run loop invokes.

## Declaration

```swift
func perform(_ block: @escaping @Sendable () -> Void)
```

## Parameters

- `block`: A block that the run loop invokes.

## See Also

### Scheduling and Canceling Tasks

- [perform(inModes:block:)](foundation/runloop/perform(inmodes:block:).md)
- [perform(_:target:argument:order:modes:)](foundation/runloop/perform(_:target:argument:order:modes:).md)
- [cancelPerform(_:target:argument:)](foundation/runloop/cancelperform(_:target:argument:).md)
- [cancelPerformSelectors(withTarget:)](foundation/runloop/cancelperformselectors(withtarget:).md)
