all of the complexity comes in when more than one part of the code is interested in the state at the same time, which is what this thread is about.
all of the complexity comes in when more than one part of the code is interested in the state at the same time, which is what this thread is about.