Difference between DispatchSourceTimer, Timer and asyncAfter?
Timer is a Swift bridge of NSTimer, which goes back to NeXTSTEP, long, long before Grand Central Dispatch (GCD) and things like DispatchSourceTimer, which didn’t come along until 10.6 (in the form of dispatch_source_set_timer) and dispatchAfter (in the form of dispatch_after). NSTimer is based on the run loop, which was the primary way that concurrency … Read more