File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -427,15 +427,18 @@ - (BFTask *)preloadDiskObjectsToMemoryAsync {
427
427
@weakify (self);
428
428
return [BFTask taskFromExecutor: [BFExecutor executorWithDispatchQueue: _preloadQueue] withBlock: ^id {
429
429
@strongify (self);
430
- [PFUser currentUser ];
431
- [PFConfig currentConfig ];
430
+
431
+ NSArray *tasks = @[
432
+ [PFUser getCurrentUserInBackground ],
433
+ [PFConfig getCurrentConfigInBackground ],
432
434
#if !TARGET_OS_WATCH && !TARGET_OS_TV
433
- [PFInstallation currentInstallation ];
435
+ [PFInstallation getCurrentInstallationInBackground ],
434
436
#endif
435
-
436
- [self eventuallyQueue ];
437
-
438
- return nil ;
437
+ ];
438
+ return [[BFTask taskForCompletionOfAllTasks: tasks] continueWithBlock: ^id (BFTask *_) {
439
+ [self eventuallyQueue ];
440
+ return nil ;
441
+ }];
439
442
}];
440
443
}
441
444
You can’t perform that action at this time.
0 commit comments