[SR-6845] RecoverableError's attemptRecovery(optionIndex:resultHandler:) takes a non-escaping closure #49394
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Environment
Apple Swift version 4.1 (swiftlang-902.0.34 clang-902.0.30)
Additional Detail from JIRA
md5: b26d01384772e1458926a80bfec015a3
duplicates:
Issue Description:
The RecoverableError protocol contains the following method:
This is analogous to -attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo: from the old NSErrorRecoveryAttempting protocol, and is meant to make it possible to recover from errors asynchronously.
Unfortunately, the method takes a non-escaping closure, which prevents this usage, making the method rather useless, since it no longer can do any job that couldn't already be handled by the synchronous attemptRecovery(optionIndex: ) method.
The text was updated successfully, but these errors were encountered: