Introduces a same thread check on all the functions on the store. This will through an exception if a store function is called from a thread other than the one it was created on.
updated docs with section on Threading
I was unable to implement win, linux, and wasm. Being I don't know of anyone using kotlinredux on those platforms I don't consider it a blocker. Library will work, but does not have same thread enforcement.
Before this PR, if accessed from another thread it may through the exception from the isDispatching check if dispatching was happing on another thread. This new exception will be more informative.
issue #12
I was unable to implement win, linux, and wasm. Being I don't know of anyone using kotlinredux on those platforms I don't consider it a blocker. Library will work, but does not have same thread enforcement.
Before this PR, if accessed from another thread it may through the exception from the isDispatching check if dispatching was happing on another thread. This new exception will be more informative.