MCPcopy Create free account
hub / github.com/AntiHub-Project/AntiHub / processQueue

Function processQueue

lib/api.ts:73–82  ·  view source on GitHub ↗
(error: Error | null, token: string | null = null)

Source from the content-addressed store, hash-verified

71}> = [];
72
73const processQueue = (error: Error | null, token: string | null = null) => {
74 failedQueue.forEach(prom => {
75 if (error) {
76 prom.reject(error);
77 } else {
78 prom.resolve(token);
79 }
80 });
81 failedQueue = [];
82};
83
84// ==================== 工具函数 ====================
85

Callers 1

fetchWithAuthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected