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

x/sentry/index.mjs>close

The Official Sentry Deno SDK
Latest
function close
import { close } from "https://deno.land/x/sentry@8.39.0-beta.0/index.mjs";

Call close() on the current client, if there is one. See Client.close.

Parameters

optional
timeout: number

Maximum time in ms the client should wait to flush its event queue before shutting down. Omitting this parameter will cause the client to wait until all events are sent before disabling itself.

Returns

Promise<boolean>

A promise which resolves to true if the queue successfully drains before the timeout, or false if it doesn't (or if there's no client defined).