stopCollectingUnhandledAsyncErrors
Closes the window opened by startCollectingUnhandledAsyncErrors and returns the unhandled async errors collected while it was open.
Use drainCollectedUnhandledAsyncErrors instead wherever collection must continue afterwards — once the window is closed, a later async error is not collected by anyone.
Import:
import { stopCollectingUnhandledAsyncErrors } from 'obsidian-dev-utils/error';Signature:
function stopCollectingUnhandledAsyncErrors(): unknown[]Returns: unknown[] — The collected unhandled async errors, or an empty array if no window was open.
Links to this page: