alexfacciorusso01/15/2019, 3:06 PM
dispatcher that takes a native dispatch queue and calls a
on it. The tutorials I’ve seen, though, they use the same dispatch queue for running every operation (the main dispatch queue). Indeed if I try to create a new dispatch queue for network (a new thread), it says it can’t run stuff in it because it can’t use a “non blocked or shared object” on a different thread. Questions: 1. Is there a way to create two threads for two dispatchers and use them with coroutines in Kotlin MPP (I think not, since I’m seeing that there’s an issue filed for it); 2. How bad is running network and UI in the same thread but asyncronously? 3. Are there some limitations for this?
kpgalligan01/15/2019, 4:25 PM
alexfacciorusso01/15/2019, 4:29 PM
kpgalligan01/15/2019, 4:30 PM
alexfacciorusso01/15/2019, 4:39 PM