Android Question Will Wait For cause a stack overflow?


Well-Known Member
Licensed User
Longtime User
I am curious if the Wait For resumable sub will cause a stack overflow?

Reason I ask is for example if I Wait For a dialog, but I cancel it and the Wait For never executes becuase I cancelled it. Then I call it again, and cancel it again, That is another Wait For (same) that never gets called again. Then I open the dialog again, but this time I press enter and the Wait For is called. Everything works as it should.

What I wonder is if the Wait For never gets called becuase I destroy the dialog another way, does the Wait For get destroyed? or does it remain on the "stack"?


Licensed User
Longtime User
Upvote 0