MCPcopy Create free account
hub / github.com/bytebase/bytebase / cleanup

Function cleanup

frontend/src/connect/refreshToken.ts:63–66  ·  view source on GitHub ↗
(received: boolean)

Source from the content-addressed store, hash-verified

61 const channel = new BroadcastChannel(CHANNEL_NAME);
62
63 const cleanup = (received: boolean) => {
64 channel.close();
65 resolve(received);
66 };
67
68 const timeout = setTimeout(() => cleanup(false), WAIT_TIMEOUT_MS);
69

Calls 2

resolveFunction · 0.85
closeMethod · 0.45