MCPcopy
hub / github.com/tldraw/tldraw / flush

Method flush

packages/utils/src/lib/throttle.ts:41–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 }
40
41 private flush() {
42 const queue = this.fpsQueue.splice(0, this.fpsQueue.length)
43 for (const fn of queue) {
44 fn()
45 }
46 }
47
48 private tick(isOnNextFrame = false) {
49 if (this.frameRaf) return

Callers 1

tickMethod · 0.95

Calls 1

fnFunction · 0.70

Tested by

no test coverage detected