• Type Parameters

    • R = any

    Parameters

    • fn: (() => R | Promise<R>)
        • (): R | Promise<R>
        • Returns R | Promise<R>

    • Optional event: string

    Returns Promise<void> | R

Generated using TypeDoc