alexfacciorusso
01/15/2019, 3:06 PMdispatch_queue
dispatcher that takes a native dispatch queue and calls a dispatch_async()
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?kpgalligan
01/15/2019, 4:25 PMkpgalligan
01/15/2019, 4:25 PMkpgalligan
01/15/2019, 4:26 PMalexfacciorusso
01/15/2019, 4:29 PMkpgalligan
01/15/2019, 4:30 PMkpgalligan
01/15/2019, 4:32 PMkpgalligan
01/15/2019, 4:33 PMkpgalligan
01/15/2019, 4:35 PMkpgalligan
01/15/2019, 4:35 PMkpgalligan
01/15/2019, 4:36 PMkpgalligan
01/15/2019, 4:37 PMalexfacciorusso
01/15/2019, 4:39 PM