I want to create a class that will help me call function but the function will call itself until condition is reached and inside condition block will be timed call, and it w