---
title: doneRecording()
framework: distributed
role: symbol
role_heading: Instance Method
path: distributed/distributedtargetinvocationencoder/donerecording()
---

# doneRecording()

Invoked to signal to the encoder that no further record... calls will be made on it.

## Declaration

```swift
mutating func doneRecording() throws
```

## Discussion

Discussion Useful if the encoder needs to perform some “final” task before the underlying message is considered complete, e.g. computing a checksum, or some additional message signing or finalization step.
