All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jsMain.co.touchlab.stately.isolate.StateHolder.kt Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
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