
This method is useful for cases where the target condition can become true outside of a message on the main thread. To ensure we don't execute the rest of the test method in parallel with other code, we have to introduce artifical messages on the main thread that check the target condition. PiperOrigin-RevId: 628072444