mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix: isolate freeze app on older ios device (#22509)
* fix: isolate freeze app on older ios device * always use at-least 5 isolates * fix: bad merge --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
parent
b334288529
commit
f4969694cd
4 changed files with 259 additions and 6 deletions
|
|
@ -11,6 +11,7 @@ import 'package:immich_mobile/providers/infrastructure/db.provider.dart';
|
|||
import 'package:immich_mobile/utils/bootstrap.dart';
|
||||
import 'package:immich_mobile/utils/debug_print.dart';
|
||||
import 'package:immich_mobile/utils/http_ssl_options.dart';
|
||||
import 'package:immich_mobile/wm_executor.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
import 'package:worker_manager/worker_manager.dart';
|
||||
|
||||
|
|
@ -31,7 +32,7 @@ Cancelable<T?> runInIsolateGentle<T>({
|
|||
throw const InvalidIsolateUsageException();
|
||||
}
|
||||
|
||||
return workerManager.executeGentle((cancelledChecker) async {
|
||||
return workerManagerPatch.executeGentle((cancelledChecker) async {
|
||||
T? result;
|
||||
await runZonedGuarded(
|
||||
() async {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue