mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Stopped validation-test/compiler_crashers_2_fixed/rdar79383990.swift from trying to call -[NSBackgroundActivityScheduler scheduleWithBlock:] async--that method is now annotated NS_SWIFT_DISABLE_ASYNC.
13 lines
404 B
Objective-C
13 lines
404 B
Objective-C
@import Foundation;
|
|
|
|
typedef NS_ENUM(NSInteger, BackgroundActivityResult) {
|
|
BackgroundActivityResultFinished = 1,
|
|
BackgroundActivityResultDeferred = 2,
|
|
};
|
|
|
|
typedef void (^BackgroundActivityCompletionHandler)(BackgroundActivityResult result);
|
|
|
|
@interface BackgroundActivityScheduler : NSObject
|
|
- (void)scheduleWithBlock:(void (^)(BackgroundActivityCompletionHandler completionHandler))block;
|
|
@end
|