Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/sentry/index.mjs>runWithAsyncContext

The Official Sentry Deno SDK
Latest
function runWithAsyncContext
import { runWithAsyncContext } from "https://deno.land/x/sentry@7.120.0/index.mjs";

Runs the supplied callback in its own async context. Async Context strategies are defined per SDK.

Parameters

callback: () => T

The callback to run in its own async context

optional
options: RunWithAsyncContextOptions

Options to pass to the async context strategy

Returns

The result of the callback