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

Method callLater

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

* Execute callback at the end of current frame * 在当前帧结束时执行回调 * * @param caller Callback context | 回调上下文 * @param callback Callback function | 回调函数

(caller: any, callback: Function)

Source from the content-addressed store, hash-verified

178 * @param callback Callback function | 回调函数
179 */
180 public callLater(caller: any, callback: Function): void {
181 const list = this._updating ? this._callLaterPending : this._callLaterList;
182
183 const exists = list.some(
184 (item) => item.caller === caller && item.callback === callback
185 );
186
187 if (!exists) {
188 list.push({ caller, callback });
189 }
190 }
191
192 /**
193 * Clear a specific callback

Callers 2

closePopupMethod · 0.80
onClickItemMethod · 0.80

Calls 2

pushMethod · 0.65
someMethod · 0.45

Tested by

no test coverage detected