Scheduler
final class Scheduler
                Convenience wrapper for Timer manipulation
- 
                  
                  
Action to take on scheduling
Declaration
Swift
typealias Completion = () -> Void - 
                  
                  
Is timer active?
Declaration
Swift
var isActive: Bool { get } - 
                  
                  
Schedule repeating with immediate execution
Declaration
Swift
func fire(every seconds: TimeInterval, then: @escaping Completion)Parameters
secondsSeconds between firing
thenAction to take on scheduling
 - 
                  
                  
Schedule repeating without immediate execution
Declaration
Swift
func schedule(every seconds: TimeInterval, then: @escaping Completion)Parameters
secondsSeconds between firing
thenAction to take on scheduling
 - 
                  
                  
Schedule once
Declaration
Swift
func schedule(at date: Date, then: @escaping Completion)Parameters
secondsSeconds between firing
thenAction to take on scheduling
 - 
                  
                  
Begin timer
Declaration
Swift
func start() - 
                  
                  
Stop timer
Declaration
Swift
func stop() - 
                  
                  
Begin timer
Declaration
Swift
func fire() 
            View on GitHub
          
      Scheduler Class Reference