Is it possible for the main UI thread to re-enter ...
# compose-desktop
m
Is it possible for the main UI thread to re-enter the render loop such that events are filtered out and the window is still drawable, as it is in some other toolkits? e.g. if you have a call from a third party library that you want to call, which is normally very fast but might potentially block for a long time, inside a composition and therefore you might want to temporarily suspend the UI (or e.g. draw a spinner somewhere on it)? Let's assume for the sake of argument that no, this library can't be run in a separate thread or anything - it has to be on the main UI thread. Alternatively I guess, maybe you could detect that the library might block, throw an exception to abort the entire composition, do the thing, then re-run the composition process and exploit the fact that it's meant to be a pure function. Are there sufficient APIs for this and if so, does anyone know where they may be documented?