new method: quizApp_invokeWhenConditionApplies(fun, condition);

this method uses timeouts as long as the given condition does not apply