File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ - (void) predictionFromFeatures:(id<MLFeatureProvider>) input
10
10
[NSOperationQueue .mainQueue addOperationWithBlock: ^{
11
11
NSError *error = nil ;
12
12
id <MLFeatureProvider> prediction = [self predictionFromFeatures: input error: &error];
13
- completionHandler (prediction, error);
13
+
14
+ [NSOperationQueue .mainQueue addOperationWithBlock: ^{
15
+ completionHandler (prediction, error);
16
+ }];
14
17
}];
15
18
}
16
19
@@ -20,7 +23,10 @@ - (void) predictionFromFeatures:(id<MLFeatureProvider>) input
20
23
[NSOperationQueue .mainQueue addOperationWithBlock: ^{
21
24
NSError *error = nil ;
22
25
id <MLFeatureProvider> prediction = [self predictionFromFeatures: input options: options error: &error];
23
- completionHandler (prediction, error);
26
+
27
+ [NSOperationQueue .mainQueue addOperationWithBlock: ^{
28
+ completionHandler (prediction, error);
29
+ }];
24
30
}];
25
31
}
26
32
You can’t perform that action at this time.
0 commit comments