MCPcopy Create free account
hub / github.com/dailydotdev/apps / finish

Function finish

packages/shared/src/contexts/PushNotificationContext.tsx:386–390  ·  view source on GitHub ↗
(subscribed: boolean)

Source from the content-addressed store, hash-verified

384 const controller = new AbortController();
385 let timeout: ReturnType<typeof setTimeout>;
386 const finish = (subscribed: boolean) => {
387 clearTimeout(timeout);
388 controller.abort();
389 resolve(subscribed);
390 };
391 timeout = setTimeout(() => finish(false), nativePushStateTimeoutMs);
392
393 globalThis.addEventListener(

Callers 1

NativeAppleSubProviderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected