not much better, some race condition exists. figuring that out.

This commit is contained in:
Christien Rioux 2024-02-29 21:21:20 -05:00
parent ce4601b575
commit f896fc822c
2 changed files with 4 additions and 4 deletions

View file

@ -24,7 +24,7 @@ class DHTShortArrayCubit<T> extends Cubit<DHTShortArrayBusyState<T>>
_wantsCloseRecord = true;
// Make initial state update
await _refreshNoWait();
unawaited(_refreshNoWait());
_subscription = await _shortArray.listen(_update);
});
}
@ -37,7 +37,7 @@ class DHTShortArrayCubit<T> extends Cubit<DHTShortArrayBusyState<T>>
super(const BlocBusyState(AsyncValue.loading())) {
_initFuture = Future(() async {
// Make initial state update
await _refreshNoWait();
unawaited(_refreshNoWait());
_subscription = await shortArray.listen(_update);
});
}