mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-26 17:46:26 +03:00
71fb7a03ec
This CL limits the use of |setTimeout| by wrapping it in our own timer class. The timer class makes it easier to track and cancel time-based events. To ensure that|setTimeout| is not used outside of our timer classes, the conformance rules have been updated to only allow |setTimeout| to be used by our timer classes. Since |setTimeout| is very similar to |setInterval|, the conformance rules for |setInternal| rules were updates to reflect more of the logic behind why we don't want to use |setTimeout| and |setInterval| directly. Change-Id: Iff5da32a61b515dd2016837fa74a34c04b6c5fd2