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

Function rejectedSyncPromise

packages/core/src/utils/syncpromise.ts:33–37  ·  view source on GitHub ↗
(reason?: any)

Source from the content-addressed store, hash-verified

31 * @returns the rejected sync promise
32 */
33export function rejectedSyncPromise<T = never>(reason?: any): PromiseLike<T> {
34 return new SyncPromise((_, reject) => {
35 reject(reason);
36 });
37}
38
39type Executor<T> = (resolve: (value?: T | PromiseLike<T> | null) => void, reject: (reason?: any) => void) => void;
40

Callers 5

producerFunction · 0.90
notifyEventProcessorsFunction · 0.90
_processEventFunction · 0.90
addFunction · 0.90

Calls

no outgoing calls

Tested by 1

producerFunction · 0.72