tryHandleNotificationQueue method
Future<void>
tryHandleNotificationQueue(
)
Implementation
Future<void> tryHandleNotificationQueue() async {
if (!$signedIn || notificationQueueHandlers.isEmpty) {
return;
}
for (VoidCallback i
in notificationQueueHandlers.values.reversed().toList()) {
try {
verbose("Trying to handle notification queue with handler $i");
i();
return;
} catch (e, es) {
error("Failed to handle notification with handler: $i");
error(e);
error(es);
continue;
}
}
warn("No notification handlers were able to process the queue.");
}