Domanda di colloquio di AppFolio

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