Pergunta de entrevista da empresa AppFolio

How would you implement a feature like JavaScript's setTimeout() in any language other than JavaScript?