• Creates a new scope with and executes the given operation within. The scope is automatically removed once the operation finishes or throws.

    This is essentially a convenience function for:

    pushScope();
    callback();
    popScope();

    Parameters

    • callback: ((scope) => void)

      that will be enclosed into push/popScope.

        • (scope): void
        • Parameters

          Returns void

    Returns ReturnType<Hub["withScope"]>

Generated using TypeDoc