delay a function with `ms`.