executes a function when a value changes to true
{function | boolean} wait until val is true
{function} function to execute when val turns true
{int} checking interval in ms, default = 100
executes a function when a value changes to true