use dev version of async and bloc tools

This commit is contained in:
Christien Rioux 2024-05-07 10:03:41 -05:00
parent 25a6a00fcf
commit 627066dd27
9 changed files with 21 additions and 17 deletions

View File

@ -391,7 +391,7 @@ class SingleContactMessagesCubit extends Cubit<SingleContactMessagesState> {
_renderState(); _renderState();
} }
final WaitSet _initWait = WaitSet(); final WaitSet<void> _initWait = WaitSet();
final ActiveAccountInfo _activeAccountInfo; final ActiveAccountInfo _activeAccountInfo;
final TypedKey _remoteIdentityPublicKey; final TypedKey _remoteIdentityPublicKey;
final TypedKey _localConversationRecordKey; final TypedKey _localConversationRecordKey;

View File

@ -159,7 +159,7 @@ class ConversationCubit extends Cubit<AsyncValue<ConversationState>> {
final localConversationCubit = _localConversationCubit; final localConversationCubit = _localConversationCubit;
final remoteConversationCubit = _remoteConversationCubit; final remoteConversationCubit = _remoteConversationCubit;
final deleteSet = DelayedWaitSet(); final deleteSet = DelayedWaitSet<void>();
if (localConversationCubit != null) { if (localConversationCubit != null) {
final data = localConversationCubit.state.asData; final data = localConversationCubit.state.asData;
@ -351,5 +351,5 @@ class ConversationCubit extends Cubit<AsyncValue<ConversationState>> {
localConversation: null, remoteConversation: null); localConversation: null, remoteConversation: null);
// //
DHTRecordCrypto? _conversationCrypto; DHTRecordCrypto? _conversationCrypto;
final WaitSet _initWait = WaitSet(); final WaitSet<void> _initWait = WaitSet();
} }

View File

@ -112,7 +112,7 @@ class DHTRecordCubit<T> extends Cubit<AsyncValue<T>> {
DHTRecord get record => _record; DHTRecord get record => _record;
@protected @protected
final WaitSet initWait = WaitSet(); final WaitSet<void> initWait = WaitSet();
StreamSubscription<DHTRecordWatchChange>? _subscription; StreamSubscription<DHTRecordWatchChange>? _subscription;
late DHTRecord _record; late DHTRecord _record;

View File

@ -121,7 +121,7 @@ class DHTShortArrayCubit<T> extends Cubit<DHTShortArrayBusyState<T>>
return _shortArray.operateWriteEventual(closure, timeout: timeout); return _shortArray.operateWriteEventual(closure, timeout: timeout);
} }
final WaitSet _initWait = WaitSet(); final WaitSet<void> _initWait = WaitSet();
late final DHTShortArray _shortArray; late final DHTShortArray _shortArray;
final T Function(List<int> data) _decodeElement; final T Function(List<int> data) _decodeElement;
StreamSubscription<void>? _subscription; StreamSubscription<void>? _subscription;

View File

@ -42,6 +42,6 @@ abstract class AsyncTableDBBackedCubit<T> extends Cubit<AsyncValue<T?>>
} }
} }
final WaitSet _initWait = WaitSet(); final WaitSet<void> _initWait = WaitSet();
final Mutex _mutex = Mutex(); final Mutex _mutex = Mutex();
} }

View File

@ -185,7 +185,7 @@ class PersistentQueue<T extends GeneratedMessage>
final String _key; final String _key;
final T Function(Uint8List) _fromBuffer; final T Function(Uint8List) _fromBuffer;
final bool _deleteOnClose; final bool _deleteOnClose;
final WaitSet _initWait = WaitSet(); final WaitSet<void> _initWait = WaitSet();
final Mutex _queueMutex = Mutex(); final Mutex _queueMutex = Mutex();
IList<T> _queue = IList<T>.empty(); IList<T> _queue = IList<T>.empty();
final StreamController<Iterable<T>> _syncAddController = StreamController(); final StreamController<Iterable<T>> _syncAddController = StreamController();

View File

@ -172,7 +172,7 @@ class TableDBValue<T> extends TableDBBackedJson<T> {
final T? Function(Object? obj) _valueFromJson; final T? Function(Object? obj) _valueFromJson;
final Object? Function(T? obj) _valueToJson; final Object? Function(T? obj) _valueToJson;
final StreamController<T> _streamController; final StreamController<T> _streamController;
final WaitSet _initWait = WaitSet(); final WaitSet<void> _initWait = WaitSet();
////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////
/// AsyncTableDBBacked /// AsyncTableDBBacked

View File

@ -36,10 +36,9 @@ packages:
async_tools: async_tools:
dependency: "direct main" dependency: "direct main"
description: description:
name: async_tools path: "../../../dart_async_tools"
sha256: "972f68ab663724d86260a31e363c1355ff493308441b872bf4e7b8adc67c832c" relative: true
url: "https://pub.dev" source: path
source: hosted
version: "0.1.0" version: "0.1.0"
bloc: bloc:
dependency: "direct main" dependency: "direct main"
@ -52,10 +51,9 @@ packages:
bloc_advanced_tools: bloc_advanced_tools:
dependency: "direct main" dependency: "direct main"
description: description:
name: bloc_advanced_tools path: "../../../bloc_advanced_tools"
sha256: bc0e1d5c26ae7df011464ab6abc2134dcfb668952acc87359abc7457cab091dd relative: true
url: "https://pub.dev" source: path
source: hosted
version: "0.1.0" version: "0.1.0"
boolean_selector: boolean_selector:
dependency: transitive dependency: transitive
@ -718,7 +716,7 @@ packages:
path: "../../../veilid/veilid-flutter" path: "../../../veilid/veilid-flutter"
relative: true relative: true
source: path source: path
version: "0.3.1" version: "0.3.2"
vm_service: vm_service:
dependency: transitive dependency: transitive
description: description:

View File

@ -23,6 +23,12 @@ dependencies:
# veilid: ^0.0.1 # veilid: ^0.0.1
path: ../../../veilid/veilid-flutter path: ../../../veilid/veilid-flutter
dependency_overrides:
async_tools:
path: ../../../dart_async_tools
bloc_advanced_tools:
path: ../../../bloc_advanced_tools
dev_dependencies: dev_dependencies:
build_runner: ^2.4.8 build_runner: ^2.4.8
freezed: ^2.4.7 freezed: ^2.4.7