groovy

Change sleep() variant with closure to enable continued sleep