I think I stumbled upon a runtime K/N bug wrt lamb...
# kotlin-native
j
I think I stumbled upon a runtime K/N bug wrt lambdas executed within Kotlin/Native in different threads. I'm messing around with libdispatch and noticed a runtime crash when using
dispatch_async
on different queues. Lambdas (blocks) that are born on the Swift side but executed in the Kotlin compiled code work fine. But Lambdas born on the Kotlin side executed in a different thread than they were born in cause a crash. I'll have to create a code sample since it's not straightforward, but it is a common use case.