In mobile development exists solution for caching with RxJava usage, but there is no solutions for Kotlin Coroutines. The project is to provide this functionality to mobile community.
Instead of trying to figure out data type during serialization/deserialization I suggest to just ask user this infromation. E.g. why not to do @ProviderKey("TestKey", "Bitmap::class")? With this approach you don't need reflection and can just immediately retrieve correct serializer/deserializer.
Instead of trying to figure out data type during serialization/deserialization I suggest to just ask user this infromation. E.g. why not to do @ProviderKey("TestKey", "Bitmap::class")? With this approach you don't need reflection and can just immediately retrieve correct serializer/deserializer.