- Notifications
You must be signed in to change notification settings - Fork 136
Closed
Description
What are your thoughts about including the timer object in the block?
public class func every(interval: NSTimeInterval, _ block: NSTimer -> Void) -> NSTimer{} Otherwise I need to declare the variable separately like this:
var timer: NSTimer? timer = NSTimer.every(5.seconds){timer?.invalidate() } Metadata
Metadata
Assignees
Labels
No labels