Just to make sure... if I send() two events, are they guaranteed to be processed in that order, even in different streams (outside of some other influence), because each send() creates its own transaction and all transactions are processed in the correct order?
Specifically, I have this code which sends to the sTouchEnd
stream and then immediately sends a null
to the sTouchStart
stream:
Elsewhere, I have a Cell
called cDragging
which is either true or false determined by that null
being sent to sTouchStart
:
And lastly, sTouchEnd
has a gate(cDragging)
on it, before anything can be done with it:
Am I correct that there will never be a situation where sTouchEnd
is incorrectly gated, i.e. because sTouchEnd
sees the sTouchStart
stream before it sees itself? (if that makes sense - if not feel free to say so and I'll try to be clearer)