Hello everyone, maybe this already been asked befo...
# koin
h
Hello everyone, maybe this already been asked before, but how do I setup Koin to inject different coroutines dispatchers? In dagger + hilt I can easily setup this with annotation and use the correct on inside constructor of class, but after reading the doc and trying the only way I know to make this work with koin is to manually call
get(named("io"))
1
p
well some people do what @Bobby Hargett did here https://kotlinlang.slack.com/archives/C67HDJZ2N/p1731344727730589
h
so create a wrapper provider to be injected and call the correct dispatcher that I want from it, right?
🙌 1
p
Yes try it out and let me know if it works