For now I’ve got
if blocker then
Thread.Sleep(5000)
do something
It’s running in the while circle so my whole application is just being freeze. It’s also matters for me to do something in Main application thread so that’s why I don’t create new.
I think that I need to create temporary Timer, add on elapsed event, handle it and then do something but I just want to know if there is some simple solution for it and I don’t need to “re-invent a bicycle”?
I would do something like this: