MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / setWait

Method setWait

packages/editor-core/src/config.ts:342–349  ·  view source on GitHub ↗
(key: string, resolve: (data: any) => void, once?: boolean)

Source from the content-addressed store, hash-verified

340 }
341
342 setWait(key: string, resolve: (data: any) => void, once?: boolean) {
343 const waits = this.waits.get(key);
344 if (waits) {
345 waits.push({ resolve, once });
346 } else {
347 this.waits.set(key, [{ resolve, once }]);
348 }
349 }
350
351 delWait(key: string, fn: any) {
352 const waits = this.waits.get(key);

Callers 2

onceGotMethod · 0.95
onGotMethod · 0.95

Calls 3

pushMethod · 0.80
getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected