Prelude API
    Preparing search index...

    Function selectNext

    • Performs a single selection attempt: synchronously when an attempt is ready, asynchronously otherwise.

      Type Parameters

      Parameters

      Returns Promise<IteratorResult<Attempted<Attempts[number]>, any>>

      A promise that resolves with the selected value or error.

      Attempts - Tuple of attempt types.

    • Performs a single selection attempt: synchronously when an attempt is ready, asynchronously otherwise.

      Type Parameters

      Parameters

      Returns Promise<IteratorResult<Attempted<Attempts[number]>, any>>

      A promise that resolves with the selected value or error.

      Attempts - Tuple of attempt types.