Hi. Im trying to put a variable inside kodein db and keep getting invalid mutability exceptions. It works ok from the main thread, but not from a suspend function. has anyone ever encountered this?
s
salomonbrys
09/27/2021, 10:11 AM
Kodein-DB is not meant to be used in a frozen environment.
We decided to wait for the new memory model to be released rather than spend a considerable amount of time optimizing for the current one who is meant to be deprecated.
v
Vadzim Filipovich
09/27/2021, 2:53 PM
Try to use Kotlin 1.6-M1-139 (or newer), I shifted and all works fine for me