@mikuroxina/mini-fn
    Preparing search index...

    Function tailRecM

    • Repeats the stepper until it returns Break over Promise.

      Type Parameters

      • X
      • A

      Parameters

      • stepper: (state: A) => Promise<ControlFlow.ControlFlow<X, A>>

        To be repeated with the state. It returns the next state of Continue or the return value of Break.

      Returns (state: A) => Promise<X>

      The computation which results value of Break.