UNPKG

@sentry/core

Version:
15 lines (14 loc) • 508 B
import { GLOBAL_OBJ } from "./worldwide.js"; // src/utils/vercelWaitUntil.ts /** * Function that delays closing of a Vercel lambda until the provided promise is resolved. * * Vendored from https://www.npmjs.com/package/@vercel/functions */ function vercelWaitUntil(task) { if (typeof EdgeRuntime !== "string") return; const ctx = GLOBAL_OBJ[Symbol.for("@vercel/request-context")]?.get?.(); if (ctx?.waitUntil) ctx.waitUntil(task); } export { vercelWaitUntil }; //# sourceMappingURL=vercelWaitUntil.js.map