mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Pass a zero normal result to ObjC async completion handlers on the error path.
Fixes #65199
This commit is contained in:
@@ -364,4 +364,8 @@ MAIN_ACTOR
|
||||
- (void)loadFloatWithCompletionHandler:(void (^)(float))completionHandler;
|
||||
@end
|
||||
|
||||
@protocol FailableFloatLoader
|
||||
- (void)loadFloatOrThrowWithCompletionHandler:(void (^)(float, NSError* __nullable)) completionHandler;
|
||||
@end
|
||||
|
||||
#pragma clang assume_nonnull end
|
||||
|
||||
Reference in New Issue
Block a user