approve one executor
This commit is contained in:
@@ -21,7 +21,6 @@ import 'package:tmail_ui_user/features/manage_account/data/network/manage_accoun
|
||||
import 'package:tmail_ui_user/features/session/data/network/session_api.dart';
|
||||
import 'package:tmail_ui_user/features/thread/data/network/thread_api.dart';
|
||||
import 'package:tmail_ui_user/features/thread/data/network/thread_isolate_worker.dart';
|
||||
import 'package:tmail_ui_user/main/utils/binding_tag.dart';
|
||||
import 'package:worker_manager/worker_manager.dart';
|
||||
|
||||
class NetworkBindings extends Bindings {
|
||||
@@ -93,12 +92,11 @@ class NetworkBindings extends Bindings {
|
||||
}
|
||||
|
||||
void _bindingIsolateWorker() {
|
||||
Get.put(Executor(), tag: BindingTag.threadExecutor);
|
||||
Get.put(Executor());
|
||||
Get.put(ThreadIsolateWorker(
|
||||
Get.find<ThreadAPI>(),
|
||||
Get.find<EmailAPI>(),
|
||||
Get.find<Executor>(tag: BindingTag.threadExecutor)));
|
||||
Get.put(Executor());
|
||||
Get.find<Executor>()));
|
||||
Get.put(MailboxIsolateWorker(
|
||||
Get.find<ThreadAPI>(),
|
||||
Get.find<EmailAPI>(),
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
|
||||
class BindingTag {
|
||||
static const String threadExecutor = '#ThreadExecutor' ;
|
||||
}
|
||||
Reference in New Issue
Block a user