Files
swift-mirror/test/Concurrency/Inputs/transfernonsendable_objc.h
Michael Gottesman 1046a03fb4 [concurrency] When calling an imported async objc function using continuations, use merge_isolation_region to tie the block storage and the resume buffer into one region.
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
2024-11-01 12:11:44 -07:00

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