documentation
This commit is contained in:
parent
9b1cd98f1a
commit
4d7bed0450
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue