this-state
this-state provides a way to store state in a thread-safe manner as well as a way to asynchronously wait for state changes.
Examples
The example below uses the following state:
Waiting for a state change
let state = new;
let state_clone = state.clone;
spawn;
state.wait_for_state.await;
assert_eq!;