Join Slack
Powered by
Just FYI, to provide some thankful feedback :sligh...
# koin
h
holgerbrandl
11/22/2021, 9:06 PM
Just FYI, to provide some thankful feedback 🙂: Thanks to the great docs regarding context isolation, I managed to implement a global dependency context using thread-local. By doing, so the kalasim-user can run multiple simulations at ease in parallel with isolated dependency contexts without even thinking about dependencies. And whenever a simulation is started it makes sure to set the correct koin context for the current thread. See
https://github.com/holgerbrandl/kalasim/blob/master/src/main/kotlin/org/kalasim/misc/DependencyContext.kt
and as example
https://www.kalasim.org/examples/atm_queue/#parallel-whatif
a
arnaud.giuliani
11/25/2021, 9:01 AM
Great 💪 and thanks for your feedback
2
Views
Open in Slack
Previous
Next