title: Two conditions - which will be first
body: <p>I want to wait for 500 ms and "listen" for some changes. If there are no changes then execute first method, if there were some changes - execute another.
  <br> How can I do this?</p>