implemented a proof of concept for a waitForTrue method, that checks a condition with by calling a passed function pointer. if the method returns true within the timeout limit, the method return also true