jsMain.co.touchlab.stately.isolate.StateHolder.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stately-isolate-js Show documentation
Show all versions of stately-isolate-js Show documentation
Multithreaded Kotlin Multiplatform Utilities
package co.touchlab.stately.isolate
actual class StateHolder actual constructor(t: T, actual val stateRunner: StateRunner) {
actual val myState: T = t
private var _isDisposed: Boolean = false
actual val isDisposed: Boolean
get() = _isDisposed
actual fun dispose() {
if (!isDisposed) _isDisposed = true
}
actual val myThread: Boolean = true
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy