Skip to content

Commit 098997a

Browse files
author
Itai Ferber
committed
Mark resultHandler as @escaping
1 parent 2733f62 commit 098997a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Foundation/NSError.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public protocol RecoverableError : Error {
239239
/// This entry point is used for recovery of errors handled at a
240240
/// "document" granularity, that do not affect the entire
241241
/// application.
242-
func attemptRecovery(optionIndex recoveryOptionIndex: Int, resultHandler handler: (_ recovered: Bool) -> Void)
242+
func attemptRecovery(optionIndex recoveryOptionIndex: Int, resultHandler handler: @escaping (_ recovered: Bool) -> Void)
243243

244244
/// Attempt to recover from this error when the user selected the
245245
/// option at the given index. Returns true to indicate
@@ -256,7 +256,7 @@ public extension RecoverableError {
256256
/// Default implementation that uses the application-model recovery
257257
/// mechanism (``attemptRecovery(optionIndex:)``) to implement
258258
/// document-modal recovery.
259-
func attemptRecovery(optionIndex recoveryOptionIndex: Int, resultHandler handler: (_ recovered: Bool) -> Void) {
259+
func attemptRecovery(optionIndex recoveryOptionIndex: Int, resultHandler handler: @escaping (_ recovered: Bool) -> Void) {
260260
handler(attemptRecovery(optionIndex: recoveryOptionIndex))
261261
}
262262
}

0 commit comments

Comments
 (0)