(&mut self)
| 180 | #[async_trait(?Send)] |
| 181 | impl Yielder for WebYielder { |
| 182 | async fn yield_now(&mut self) { |
| 183 | match self.take_yield_decision(current_time_millis()) { |
| 184 | YieldDecision::Continue => (), |
| 185 | YieldDecision::Fairness => { |
| 186 | do_message_channel_yield().await; |
| 187 | self.on_host_yield(); |
| 188 | } |
| 189 | YieldDecision::Paint => { |
| 190 | do_request_animation_frame().await; |
| 191 | self.on_host_yield(); |
| 192 | } |
| 193 | } |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | /// Sets up the common storage drives. |
nothing calls this directly
no test coverage detected