MCPcopy Create free account
hub / github.com/esengine/esengine / once

Method once

packages/fairygui/src/core/Timer.ts:145–147  ·  view source on GitHub ↗

* Execute callback after specified delay (one time) * 延迟执行回调(一次) * * @param delay Delay in milliseconds | 延迟时间(毫秒) * @param caller Callback context | 回调上下文 * @param callback Callback function | 回调函数

(delay: number, caller: any, callback: Function)

Source from the content-addressed store, hash-verified

143 * @param callback Callback function | 回调函数
144 */
145 public once(delay: number, caller: any, callback: Function): void {
146 this.addCallback(delay, caller, callback, false);
147 }
148
149 /**
150 * Execute callback repeatedly at interval

Callers 1

RenderDebugPanelFunction · 0.45

Calls 1

addCallbackMethod · 0.95

Tested by

no test coverage detected