We are going to migrate away from the concept of notifying the main thread. There should be events sent to it instead. This patch starts a series to implement that.