• Register a callback to be run during program shutdown (triggered, e.g., by the 'beforeunload' event when the webpage is being closed).

    Note such tasks should be synchronous functions; otherwise, they probably won't complete.

    Parameters

    • task: (() => void)
        • (): void
        • Returns void

    Returns void

Generated using TypeDoc