Anyone else notice, that `waitUntil` agressively b...
# multiplatform
c
Anyone else notice, that
waitUntil
agressively blocks the main thread causing background tasks on the same scope to never complete?
Copy code
// 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 }
It will not even timeout, feels very broken? This is desktopTest, might be fine on other srcs..?
j
Is this some #CJLTWPH7S function? What is
waitUntil
?
c
yeah
ComposeUiTest
Seems to work on the emulators, so guessing something when it got ported to desktop src for KMP
j
Ask in #C01D6HTPATV then I guess?
👍 1
It seems to just constantly blockingly run a frame on the main thread
c
OK cool, glad I'm not crazy then!