let timer = Each(1).seconds // Can be .milliseconds, .seconds, .minute, .hours
timer.perform {
// Do your operations
// This closure has to return a NextStep value
// Return .continue if you want to leave the timer active, otherwise
// return .stop to invalidate it
}
timer.stop() // This stops immediately the timer
timer.restart()