---
title: "updateExecuteOnce(_:completionHandler:)"
framework: homekit
role: symbol
role_heading: Instance Method
path: "homekit/hmeventtrigger/updateexecuteonce(_:completionhandler:)"
---

# updateExecuteOnce(_:completionHandler:)

Updates the repetition status of the event trigger.

## Declaration

```swift
func updateExecuteOnce(_ executeOnce: Bool, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func updateExecuteOnce(_ executeOnce: Bool) async throws
```

## Parameters

- `executeOnce`: A Boolean value that specifies whether to repeat the trigger.
- `completion`: A block that executes after processing the request. The block takes the following parameter:

## See Also

### Controlling recurrence

- [recurrences](homekit/hmeventtrigger/recurrences.md)
- [updateRecurrences(_:completionHandler:)](homekit/hmeventtrigger/updaterecurrences(_:completionhandler:).md)
- [executeOnce](homekit/hmeventtrigger/executeonce.md)
