Return true if all values in the given set are idle or paused.
(active: Set<FluidValue>)
| 166 | |
| 167 | /** Return true if all values in the given set are idle or paused. */ |
| 168 | function checkIdle(active: Set<FluidValue>) { |
| 169 | // Parents can be active even when paused, so the `.every` check |
| 170 | // removes us from the frameloop if all active parents are paused. |
| 171 | return !active.size || Array.from(active).every(isIdle) |
| 172 | } |
| 173 | |
| 174 | /** Become idle if not already idle. */ |
| 175 | function becomeIdle(self: Interpolation) { |