Added Freezer to be able to freeze objects from Swift

This commit is contained in:
dankito 2020-07-11 23:47:15 +02:00
parent 71d81c9484
commit 4ef5243bbe
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
package Freezer
import kotlin.native.concurrent.freeze
fun <T> freeze(obj: T): T {
return obj.freeze()
}