---
title: "didComplete(error:)"
framework: fskit
role: symbol
role_heading: Instance Method
path: "fskit/fstask/didcomplete(error:)"
---

# didComplete(error:)

Informs the client that the task completed.

## Declaration

```swift
func didComplete(error: (any Error)?)
```

## Parameters

- `error`: nil if the task completed successfully; otherwise, an error that caused the task to fail.
