Clear SDK cache properly (#4396)

* Use close() instead of destroy, because close() is synchronized.

* Use new method to clear the SDK cache.

* Format file.

* Remove the legacy way to clear the SDK cache.

* Remove unused import

* revert name change
This commit is contained in:
Benoit Marty 2025-03-20 14:33:59 +01:00 committed by GitHub
parent f85abe27fc
commit 93d27735e4
6 changed files with 41 additions and 33 deletions

View file

@ -167,7 +167,7 @@ class FakeMatrixClient(
return 0
}
override suspend fun clearCache() {
override suspend fun clearCache() = simulateLongTask {
clearCacheLambda()
}