MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / setWait

Method setWait

packages/core/src/engine/editor.ts:231–238  ·  view source on GitHub ↗
(key: EditorValueKey, resolve: (data: any) => void, once?: boolean)

Source from the content-addressed store, hash-verified

229 }
230
231 private setWait(key: EditorValueKey, resolve: (data: any) => void, once?: boolean) {
232 const waits = this.waits.get(key)
233 if (waits) {
234 waits.push({ resolve, once })
235 } else {
236 this.waits.set(key, [{ resolve, once }])
237 }
238 }
239
240 private delWait(key: EditorValueKey, fn: any) {
241 const waits = this.waits.get(key)

Callers 3

onceGotMethod · 0.95
onGotMethod · 0.95
onChangeMethod · 0.95

Calls 2

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected