ThreadSafeStore

class ThreadSafeStore<State>(val store: Store<State>) : SynchronizedObject, TypedStore<State, Any>

Threadsafe wrapper for ReduxKotlin store that synchronizes access to each function using kotlinx.AtomicFu [https://github.com/Kotlin/kotlinx.atomicfu] Allows all store functions to be accessed from any thread. This does have a performance impact for JVM/Native. TODO more info at https://ReduxKotlin.org

Constructors

Link copied to clipboard

Properties

Link copied to clipboard
open override var dispatch: Dispatcher
Link copied to clipboard
open override val getState: GetState<State>
Link copied to clipboard
open override val replaceReducer: (Reducer<State>) -> Unit
Link copied to clipboard
open val state: State
Link copied to clipboard
open override val store: Store<State>
Link copied to clipboard

Extensions

Link copied to clipboard

Converts a given Store to a ThreadSafeStore.