I remember seeing the `block: Boolean` parameter t...
# tornadofx
l
I remember seeing the
block: Boolean
parameter that I can set to
true
, but I prefer to avoid it, especially since I may need the main thread for other coroutines to continue running (I am a "heavy" coroutines user). The extension I posted in a snippet above should work well for my use case, but I'll look into scopes still, thanks for the recommendation!
g
You could also look at
whenUndockedOnce {  }
in place of awaitHidden
l
Oh thanks, I didn't notice the undock listeners! Will help for implementing proper coroutine scopes once and for all!