Creates a new yielder.
()
| 140 | |
| 141 | /// Creates a new yielder. |
| 142 | fn new() -> Self { |
| 143 | Self(Rc::from(RefCell::from(WebYielderState { |
| 144 | last_host_yield_ms: current_time_millis(), |
| 145 | paint_requested: false, |
| 146 | }))) |
| 147 | } |
| 148 | |
| 149 | /// Records that the host just had a chance to run at the given `now_ms`. |
| 150 | fn record_host_yield(&self, now_ms: f64) { |
nothing calls this directly
no test coverage detected