A small class that performs block-based actions after a delay.