• Awaits a single promise and displays a loading bar while it's in progress. The promise's result is returned.

    Type Parameters

    • T

    Parameters

    • options: { taskPromise: Promise<T> | () => Promise<T>; title: string }

      Configuration object

      • taskPromise: Promise<T> | () => Promise<T>

        The promise to track

      • title: string

        The title to display with the loading bar

    • renderOptions: RenderTasksOptions = {}

      Optional render configuration

    Returns Promise<T>

    The result of the promise

    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
    Loading app ...