Syntactic sugar for setTimeout and setInterval.