chrisjenx
02/21/2025, 4:12 PMwaitUntil
agressively blocks the main thread causing background tasks on the same scope to never complete?
// Works
while (!downloadCalled) {
Thread.sleep(100)
}
downloadCalled.shouldBeTrue()
// Will block here for ever as it locks the thread so the thing we are waiting for will
// never run
// waitUntil(timeoutMillis = 5000) { downloadCalled }
chrisjenx
02/21/2025, 4:13 PMjw
02/21/2025, 5:03 PMwaitUntil
?chrisjenx
02/21/2025, 5:03 PMComposeUiTest
chrisjenx
02/21/2025, 5:04 PMjw
02/21/2025, 5:04 PMjw
02/21/2025, 5:08 PMjw
02/21/2025, 5:09 PMchrisjenx
02/21/2025, 5:10 PM