CoroutinesCache icon indicating copy to clipboard operation
CoroutinesCache copied to clipboard

Use CoroutineScope in cache operations

Open vvsevolodovich opened this issue 6 years ago • 1 comments

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.

vvsevolodovich avatar Mar 25 '19 07:03 vvsevolodovich

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.

Dartlexx avatar Apr 17 '19 09:04 Dartlexx