---
title: perSubscriptionSaveBlock
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/ckmodifysubscriptionsoperation/persubscriptionsaveblock-8y9zn
---

# perSubscriptionSaveBlock

The closure to execute when CloudKit saves a subscription.

## Declaration

```swift
var perSubscriptionSaveBlock: ((CKSubscription.ID, Result<CKSubscription, 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 subscription that CloudKit saves. A Result that contains either The subscription that CloudKit saves An error that provides information about a failure saving the subscription. The closure executes once for each subscription in the subscriptionsToSave property. Each time the closure executes, it executes serially with respect to the other subscription completion blocks 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.
