---
title: NSUserAutomatorTask.CompletionHandler
framework: foundation
role: symbol
role_heading: Type Alias
path: foundation/nsuserautomatortask/completionhandler
---

# NSUserAutomatorTask.CompletionHandler

Implement this block to retrieve the output of the Automator workflow executed by execute(withInput:completionHandler:).

## Declaration

```swift
typealias CompletionHandler = @Sendable (Any?, (any Error)?) -> Void
```
