TF-1915 SendingState of SendingEmail updates according to the work done in WorkManager when network connectivity is restored
(cherry picked from commit 744c8bc8dc8a82cb3afb75aead5a744adaae5501)
This commit is contained in:
@@ -12,10 +12,7 @@ abstract class WorkObserver {
|
||||
void consumeState(Stream<Either<Failure, Success>> newStateStream) {
|
||||
newStateStream.listen(
|
||||
_handleStateStream,
|
||||
onError: (error, stackTrace) {
|
||||
logError('WorkObserver::consumeState():onError:error: $error');
|
||||
logError('WorkObserver::consumeState():onError:stackTrace: $stackTrace');
|
||||
}
|
||||
onError: handleOnError
|
||||
);
|
||||
}
|
||||
|
||||
@@ -26,4 +23,8 @@ abstract class WorkObserver {
|
||||
void handleFailureViewState(Failure failure) {}
|
||||
|
||||
void handleSuccessViewState(Success success) {}
|
||||
|
||||
void handleOnError(Object? error, StackTrace stackTrace) {
|
||||
logError('WorkObserver::handleOnError():error: $error | stackTrace: $stackTrace');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user