• Type Parameters

    • T

    Parameters

    • f: () => T
    • OptionalonError: (e: Error) => void

    Returns undefined | T