https://kotlinlang.org logo
#coroutines
Title
# coroutines
p

pteale

05/18/2019, 4:50 PM
ok i got it working now, it appears that if you need access to the main dispatcher you have to have this line in your Gradle file
🧵 3
m

Matej Drobnič

05/18/2019, 4:50 PM
Yes
this is the dependency for the main dispatchers 🙂
p

pteale

05/18/2019, 4:51 PM
yeah completely missed it, been trying all sorts of shit to get this working
i just had the core dependency
i guess cause Kotlin is multiplatform not every platform is going to need access to the main thread, so makes sense its in a different repo
m

Matej Drobnič

05/18/2019, 5:14 PM
yeah, also there are multiple main dispatchers for different UI frameworks
Android being one of them
p

pteale

05/18/2019, 5:15 PM
good to know, thanks
5 Views