M
m
Hi All
I have a task, I need to execute this task only if I meet a condition.
I wrote the function
didIMeetCondition()
which returns boolean.
I have a threshold value of time to which I can wait till my condition
returns true.
After the threshold I need to throw exception if y condition return
false.
How do I write code to do this. Just psuedo code is sufficient.
Any ideas, please let me know.
Thanks
Bib
I have a task, I need to execute this task only if I meet a condition.
I wrote the function
didIMeetCondition()
which returns boolean.
I have a threshold value of time to which I can wait till my condition
returns true.
After the threshold I need to throw exception if y condition return
false.
How do I write code to do this. Just psuedo code is sufficient.
Any ideas, please let me know.
Thanks
Bib