Join Slack
Powered by
<@U4Z0P340Y> I noticed that kotlin-inject doens’t ...
# kotlin-inject
p
Paul Woitaschek
07/19/2022, 11:31 AM
@evant
I noticed that kotlin-inject doens’t have any synchronization logic for native. This is quite error prone as objects might be created multiple times though they are scoped. What do you think about making use of a lock on native like implemented here?
https://github.com/InsertKoinIO/koin/blob/1326329060e6b923f9a54873178e55cdddc4d99e/core/koin-core/src/nativeMain/kotlin/org/koin/mp/KoinPlatformTools.kt#L29
e
evant
07/19/2022, 5:26 PM
😕 where are you seeing that? There should be synchronization logic on native
https://github.com/evant/kotlin-inject/blob/main/kotlin-inject-runtime/src/nativeMain/kotlin/me/tatarka/inject/internal/LazyMap.kt
p
Paul Woitaschek
07/19/2022, 5:30 PM
Woot? Where did I see that? 🙈
12
Views
Open in Slack
Previous
Next