Threading.Event could be used for _connection_registered instead of a boolean
This is a neat idea and worth looking into, largely because of the .wait() method that would make available.
Originally posted by @dgw in #2375 (comment)
I want to come back to this idea in the future, maybe for 9.0. (It's not the sort of thing I'd be comfortable changing in a minor release like 8.1.)