documentation

This commit is contained in:
Neeraj Gupta 2022-06-03 08:40:04 +05:30
parent 9b1cd98f1a
commit 4d7bed0450
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -26,7 +26,8 @@ class MemoriesService extends ChangeNotifier {
addListener(() {
_cachedMemories = null;
});
//
// Clear memory after a delay, in async manner.
// Intention of delay is to give more CPU cycles to other tasks
Future.delayed(const Duration(seconds: 5), () {
_memoriesDB.clearMemoriesSeenBeforeTime(
DateTime.now().microsecondsSinceEpoch - (7 * kMicroSecondsInDay));