Macros to use :timer.apply_after and :timer.apply_interval with a block