---
title: "instantAction(with:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusteractions/instantaction(with:completion:)"
---

# instantAction(with:completion:)

## Declaration

```swift
func instantAction(with params: MTRActionsClusterInstantActionParams, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func instantAction(with params: MTRActionsClusterInstantActionParams) async throws
```
