Open vvsevolodovich opened 5 years ago
Considering Roman Elizarov suggestion, if we change library API we may get rid of CoroutineScopes altogether. It will be up to user. The only question here is if we can improve this infinite loop in DeleteExpirableRecordsAction.
CoroutinesCache has a CoroutineScope parameter. Cache operations should be scoped, not entire cache. In most cases, cache is a singleton and we create it once per app lifetime since initialization of this object usually takes some time.