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

Function resolvedSyncPromise

packages/core/src/utils/syncpromise.ts:21–25  ·  view source on GitHub ↗
(value?: T | PromiseLike<T>)

Source from the content-addressed store, hash-verified

19 * @returns the resolved sync promise
20 */
21export function resolvedSyncPromise<T>(value?: T | PromiseLike<T>): PromiseLike<T> {
22 return new SyncPromise(resolve => {
23 resolve(value);
24 });
25}
26
27/**
28 * Creates a rejected sync promise.

Callers 15

eventFromExceptionMethod · 0.90
eventFromMessageMethod · 0.90
initTestClientFunction · 0.90
eventFromExceptionMethod · 0.90
eventFromMessageMethod · 0.90
initTestClientFunction · 0.90
eventFromExceptionMethod · 0.90
eventFromMessageMethod · 0.90
is.test.tsFile · 0.90
producerFunction · 0.90

Calls 1

resolveFunction · 0.70

Tested by 9

eventFromExceptionMethod · 0.72
eventFromMessageMethod · 0.72
initTestClientFunction · 0.72
eventFromExceptionMethod · 0.72
eventFromMessageMethod · 0.72
initTestClientFunction · 0.72
producerFunction · 0.72
createTestTransportFunction · 0.72
getDefaultBrowserOptionsFunction · 0.68