MCPcopy Create free account
hub / github.com/codecombat/codecombat / getPageUnloadRetriesForNamespace

Function getPageUnloadRetriesForNamespace

app/core/Tracker2/pageUnload.js:76–82  ·  view source on GitHub ↗
(namespace, timeout = 15000)

Source from the content-addressed store, hash-verified

74}
75
76export async function getPageUnloadRetriesForNamespace (namespace, timeout = 15000) {
77 const namespaceRetries = getNamespaceData(namespace) || []
78
79 deleteNamespaceData(namespace)
80 return namespaceRetries
81 .filter(retry => new Date().getTime() - retry.at < timeout)
82}

Callers

nothing calls this directly

Calls 3

getNamespaceDataFunction · 0.85
deleteNamespaceDataFunction · 0.85
filterMethod · 0.80

Tested by

no test coverage detected