What artifact is `.freeze()` in? Is it possible to...
# kotlin-native
m
What artifact is
.freeze()
in? Is it possible to call
.freeze()
from swift by somehow exporting it to a framework?
b
kotlin.native.concurrent. You can make a function with the same name and signature in your library that calls that one
m
kotlin.native.concurrent
is the package name, right ? I was thinking about exporting the whole dependency to avoid having an empty wrapper. I'm doing that for
kotlinx-io-macosx64
b
Yep! You could try that.
m
The thing is I haven't found a dependency where
.freeze()
is declared. Ctrl-clicking it takes me to
~.konan/kotlin-native-macos-1.3.61
, which doesn't look like my regular maven dependency
b
It's in the std lib though I think? Might mean exporting the whole std lib. Not sure. Seems not worth it when the alternative is a single line of code to export that one function
m
Looks like it's some kind of stdlib that's included in konan but yea, no need to add thousands of lines to my header file for just one function