MCPcopy Create free account
hub / github.com/langgenius/dify / enqueueReload

Function enqueueReload

packages/dev-proxy/src/cli.ts:79–91  ·  view source on GitHub ↗
(loadConfig: () => Promise<unknown> | unknown, reason: string)

Source from the content-addressed store, hash-verified

77 }
78
79 const enqueueReload = (loadConfig: () => Promise<unknown> | unknown, reason: string) => {
80 reloadTask = reloadTask.then(async () => {
81 try {
82 await reload(await loadConfig(), reason)
83 }
84 catch (error) {
85 console.error(`[dev-proxy] failed to reload ${reason}`)
86 console.error(error instanceof Error ? error.message : error)
87 }
88 })
89
90 return reloadTask
91 }
92
93 return {
94 enqueueReload,

Callers

nothing calls this directly

Calls 4

reloadFunction · 0.85
loadConfigFunction · 0.85
thenMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected