mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Review over a large number of APIs has found that most of the time, the result type of an Objective-C completion handler method that becomes "async throws" should be optional. Change the default behavior to match this, and replace _Nullable_on_error with _Nullable_result to capture the case where the result should be optional.