---
title: perRecordZoneResultBlock
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/ckfetchrecordzonesoperation/perrecordzoneresultblock
---

# perRecordZoneResultBlock

The closure to execute when a record zone becomes available.

## Declaration

```swift
var perRecordZoneResultBlock: ((CKRecordZone.ID, Result<CKRecordZone, any Error>) -> Void)? { get set }
```

## Discussion

Discussion This property is a closure that returns no value and has the following parameters: The ID of the record zone. A Result that contains either a retrieved record zone, or an error that describes why CloudKit can’t retrieve the record zone. The fetch operation executes this closure once for each record zone ID in the recordZoneIDs property. Each time the closure executes, it executes serially with respect to the other closures of the operation. If you intend to use this closure to process results, set it before you execute the operation or submit the operation to a queue.
