Difference between DispatchSourceTimer, Timer and asyncAfter?
问题 I am struggling to understand the key differences between DispatchSourceTimer, Timer and asyncAfter ( in my case for scheduling a task that needs to be ran every X seconds, although understanding the differences in timers can be useful to ) (Or is there another (more efficient) scheduling mechanism in Swift besides the listed timers?). A Timer needs an active run loop on the current queue it was started on. A DispatchSourceTimer does not need that. A Timer keeps the CPU from going into the