Vitaliy Kondratiev
11/22/2021, 3:03 PMassertMainThreadOnNative()
if I'm trying to execute a query. Why am I forced to do it on the main thread?mbonnin
11/22/2021, 3:24 PMNSUrlSession
so you get a callback in a dispatch queue from where you need to resume a coroutine.dispatch_main_queue()
. If it's not, then it's not the same storyVitaliy Kondratiev
11/22/2021, 3:31 PMmbonnin
11/22/2021, 3:32 PM