Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/sentry_deno/packages/core/src/index.ts>BaseClient#_isClientDoneProcessing

Unofficial port of the Sentry SDK for JavaScript to Deno.
Latest
method BaseClient.prototype._isClientDoneProcessing
import { BaseClient } from "https://deno.land/x/sentry_deno@v0.2.2/packages/core/src/index.ts";

Determine if the client is finished processing. Returns a promise because it will wait timeout ms before saying "no" (resolving to false) in order to give the client a chance to potentially finish first.

Parameters

optional
timeout: number

The time, in ms, after which to resolve to false if the client is still busy. Passing 0 (or not passing anything) will make the promise wait as long as it takes for processing to finish before resolving to true.

Returns

PromiseLike<boolean>

A promise which will resolve to true if processing is already done or finishes before the timeout, and false otherwise