---
title: "run(reply:)"
framework: cryptotokenkit
role: symbol
role_heading: Instance Method
path: "cryptotokenkit/tksmartcarduserinteraction/run(reply:)"
---

# run(reply:)

Runs the user interaction and asynchronously receives a reply.

## Declaration

```swift
func run(reply: @escaping @Sendable (Bool, (any Error)?) -> Void)
```

```swift
func run() async throws -> Bool
```

## Parameters

- `reply`: The NSError object is created in the doc://com.apple.cryptotokenkit/documentation/CryptoTokenKit/TKErrorDomain domain with a code in the doc://com.apple.cryptotokenkit/documentation/CryptoTokenKit/TKError/Code enumeration.

## See Also

### Starting and Stopping

- [cancel()](cryptotokenkit/tksmartcarduserinteraction/cancel().md)
