I see from this <https://github.com/JetBrains/kotl...
# kotlin-native
p
I see from this https://github.com/JetBrains/kotlin-native/blob/5fe93fb0326ab2b2f489a83a3b14cf5da505e89a/runtime/src/main/cpp/Worker.cpp and this https://github.com/apportable/Foundation/blob/master/System/Foundation/src/NSThread.m that both Workers from KN and NSThread from iOS are essentially pthreads along with some other useful sugarcoating. Can someone explain what happens when I start a coroutine in KN using newSingleThreadContext and then call a method in iOS side code and do
let thread = Thread.current
? How is it that a thread started and created by KN using the above
Worker
implementation gets translated to iOS
Thread
object? Any resource to read about this would be very helpful