<init>

Platform and version requirements: Native (1.3)
WorkerBoundReference(value: T)

A shared reference to a Kotlin object that doesn't freeze the referred object when it gets frozen itself.

After freezing can be safely passed between workers, but value can only be accessed on the worker WorkerBoundReference was created on, unless the referred object is frozen too.

Note: Garbage collector currently cannot free any reference cycles with frozen WorkerBoundReference in them. To resolve such cycles consider using AtomicReference<WorkerBoundReference?> which can be explicitly nulled out.

© 2010–2021 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native.concurrent/-worker-bound-reference/-init-.html