Skip to main content
Module

x/sentry/index.mjs>runWithAsyncContext

The Official Sentry Deno SDK
Go to Latest
function runWithAsyncContext
import { runWithAsyncContext } from "https://deno.land/x/sentry@7.109.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