MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / safeUnref

Function safeUnref

packages/core/src/utils/timer.ts:10–15  ·  view source on GitHub ↗
(timer: ReturnType<typeof setTimeout>)

Source from the content-addressed store, hash-verified

8 * do not support `unref`.
9 */
10export function safeUnref(timer: ReturnType<typeof setTimeout>): ReturnType<typeof setTimeout> {
11 if (typeof timer === 'object' && typeof timer.unref === 'function') {
12 timer.unref();
13 }
14 return timer;
15}

Callers 8

timer.test.tsFile · 0.90
setupWeightBasedFlushingFunction · 0.90
drainFunction · 0.90
recordRequestSessionFunction · 0.90
addMethod · 0.90
flushInFunction · 0.90

Calls 1

unrefMethod · 0.65

Tested by

no test coverage detected