Pass a zero normal result to ObjC async completion handlers on the error path.

Fixes #65199
This commit is contained in:
John McCall
2025-03-26 00:58:27 -04:00
parent 3fe70968cc
commit e9ebc7c848
3 changed files with 37 additions and 2 deletions

View File

@@ -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