andreworobator
08/28/2019, 7:40 PMlisteners.forEach
could have listeners mutated right in the middle of the loop which would be weirdPatrick Jackson
08/29/2019, 12:44 AMnext()
in a coroutine context, so the rest of the chain is in that context. The sequence needs to be guaranteed though, and I believe that is not the case when launching coroutines. Flowables/channels may be interesting. Also might be worth looking at the javascript world. There may be some inspiration here(https://dassur.ma/things/react-redux-comlink/), though the JS world has whole different set of restrictions.andreworobator
08/29/2019, 1:18 AMexpect
an implementation of MainThreadChecker
Patrick Jackson
08/29/2019, 12:51 PMandreworobator
08/29/2019, 1:19 PMPatrick Jackson
08/29/2019, 1:54 PMcreateStore
? With middleware, that would put the check at the end of the chain, right before the reduction, which I think is what we want.