https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
w

william

10/28/2020, 8:05 PM
anyone know of repos to look at using multithreading coroutines with multiplatform?
b

Big Chungus

10/28/2020, 8:19 PM
Other than launching them on Default dispatcher?
Also you need to use native-mt artifacts
m

mdabrowski89

10/29/2020, 7:21 AM
Not sure if this is exactly what you are looking for but we have created sample kmm project with Coroutine based MVI pattern - link
w

william

10/29/2020, 12:05 PM
yes @Big Chungus i'm talking about using
native-mt
artifcacts
@mdabrowski89 i'm not so sure that's really what i was looking for. i was trying to get a better understanding of
freeze
along with
native-mt
usage. but i appreciate the link
b

Big Chungus

10/29/2020, 12:09 PM
It's quite simple, really. Anything that you pass to non-main dispatcher (meaning it's backed by multiple threads) will be frozen on native targets
w

william

10/29/2020, 12:27 PM
@Big Chungus that sounds simple. if i have a native objective c library / swift library which i am calling from kotlin, and the library does some multithreading stuff after i call it with an argument from kotlin do i still need to worry about freezing it ?
b

Big Chungus

10/29/2020, 12:31 PM
Not sure on that one. Potentially, but don't quote me on that.
w

william

10/29/2020, 12:31 PM
ill have to play around with it 🙂