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

Method setWait

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

Source from the content-addressed store, hash-verified

330 }
331
332 private setWait(key: IPublicTypeEditorValueKey, resolve: (data: any) => void, once?: boolean) {
333 const waits = this.waits.get(key);
334 if (waits) {
335 waits.push({ resolve, once });
336 } else {
337 this.waits.set(key, [{ resolve, once }]);
338 }
339 }
340
341 private delWait(key: IPublicTypeEditorValueKey, fn: any) {
342 const waits = this.waits.get(key);

Callers 3

onceGotMethod · 0.95
onGotMethod · 0.95
onChangeMethod · 0.95

Calls 3

pushMethod · 0.80
getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected