Skip to content

Commit 4331b25

Browse files
nate-chandlerMishal Shah
authored andcommitted
[Test] Used test header rather than SDK.
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. (cherry picked from commit 4a8a647) (cherry picked from commit bdbf76a)
1 parent 934be79 commit 4331b25

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@import Foundation;
2+
3+
typedef NS_ENUM(NSInteger, BackgroundActivityResult) {
4+
BackgroundActivityResultFinished = 1,
5+
BackgroundActivityResultDeferred = 2,
6+
};
7+
8+
typedef void (^BackgroundActivityCompletionHandler)(BackgroundActivityResult result);
9+
10+
@interface BackgroundActivityScheduler : NSObject
11+
- (void)scheduleWithBlock:(void (^)(BackgroundActivityCompletionHandler completionHandler))block;
12+
@end

0 commit comments

Comments
 (0)