Skip to main content
Module

x/sentry/index.mjs>flush

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

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

Parameters

optional
timeout: number

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

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).