MCPcopy Create free account
hub / github.com/endbasic/endbasic / new

Method new

web/src/lib.rs:142–147  ·  view source on GitHub ↗

Creates a new yielder.

()

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 3

current_time_millisFunction · 0.85
WebInputOpsClass · 0.85
on_screen_keyboardMethod · 0.45

Tested by

no test coverage detected