mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This ensures that if the block has an @out return value that the return value is considered to be affected by the actual call of the block. Before b/c we smuggled the value through a Sendable continuation, we would lose the connection in between the block and that result. rdar://131422332
24 lines
445 B
Objective-C
24 lines
445 B
Objective-C
|
|
@import Foundation;
|
|
|
|
@interface MyNotificationCenter
|
|
- (id)init;
|
|
- (void)post;
|
|
@end
|
|
|
|
@protocol MySession <NSObject>
|
|
- (void)endSession;
|
|
@end
|
|
|
|
typedef NSString *MyStringEnum NS_EXTENSIBLE_STRING_ENUM;
|
|
|
|
@interface MyAssetTrack : NSObject
|
|
@end
|
|
|
|
@interface MyAsset : NSObject
|
|
|
|
- (void)loadTracksWithStringEnum:(MyStringEnum)stringEnum completionHandler:(void (^)(NSArray<MyAssetTrack *> * _Nullable, NSError * _Nullable)) completionHandler;
|
|
|
|
@end
|
|
|