• Finds a handler that can handle the given input data. Otherwise an error gets thrown.

    Returns

    A promise resolving to a handler that supports the data or otherwise rejecting.

    Type Parameters

    • TIn

    • TOut

    Parameters

    • handlers: AsyncHandler<TIn, TOut>[]

      List of handlers to search in.

    • input: TIn

      The input data.

    Returns Promise<AsyncHandler<TIn, TOut>>