How to cancel Object.wait()
Hello,
I have some methods where I am using myObject.wait() to pause them. The only way I can continue is if I call myObject.notify() which continues the program at that point. So basically this is behaving like a 'pause' right now.
What i need is a way to cancel the execution of myObject.wait() so that it doesn't proceed with the logic after that. Is there something I can do for this?
Thanks

