public PeriodicEvent runEvery ( Runnable task , float delay , float period , KeepRunning callback ) { validateDelay ( delay ) ; validatePeriod ( period ) ; return new Event ( task , delay , period , callback ) ; }
Run a task periodically with a callback .