Added Freezer to be able to freeze objects from Swift
This commit is contained in:
parent
71d81c9484
commit
4ef5243bbe
|
@ -0,0 +1,8 @@
|
||||||
|
package Freezer
|
||||||
|
|
||||||
|
import kotlin.native.concurrent.freeze
|
||||||
|
|
||||||
|
|
||||||
|
fun <T> freeze(obj: T): T {
|
||||||
|
return obj.freeze()
|
||||||
|
}
|
Loading…
Reference in New Issue