---
title: "atomicRequest(with:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterthermostat/atomicrequest(with:completion:)"
---

# atomicRequest(with:completion:)

Command AtomicRequest

## Declaration

```swift
func atomicRequest(with params: MTRThermostatClusterAtomicRequestParams, completion: @escaping @Sendable (MTRThermostatClusterAtomicResponseParams?, (any Error)?) -> Void)
```

```swift
func atomicRequest(with params: MTRThermostatClusterAtomicRequestParams) async throws -> MTRThermostatClusterAtomicResponseParams
```

## Discussion

Discussion Begins, Commits or Cancels an atomic write
