Logos DX
    Preparing search index...

    Type Alias AsyncFunc<A, R>

    AsyncFunc: (...args: A) => Promise<R>

    Generic async function type for type-safe async function signatures.

    Ensures Promise return types are properly handled in utility functions that work with async operations.

    Type Parameters

    • A extends any[] = any[]
    • R = any

    Type Declaration

    function retry<A extends any[], R>(fn: AsyncFunc<A, R>, attempts: number): AsyncFunc<A, R>
    function withTimeout<A extends any[], R>(fn: AsyncFunc<A, R>, ms: number): AsyncFunc<A, R>