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

    Function newParallel

    • Creates a new parallel combinator that merging two computations C1 and C2.

                             +------+  A1
      S --------------+----->|      |--------------+
                      |  T1  |  C1  |              |
               +------|------|      |<------+      V
               |      |      +------+       |  [ joinA ]--> A
               V      |                     |      ^
      T <--[ joinT ]  |      +------+  A2   |      |
               ^      |----->|      |-------|------+
               |         T2  |  C2  |       |
               +-------------|      |<------+-------------- B
                             +------+
      

      Type Parameters

      • T
      • T1
      • T2

      Parameters

      • joinT: (t1: T1) => (t2: T2) => T

      Returns <A, A1, A2>(
          joinA: (a1: A1) => (a2: A2) => A,
      ) => <S, B>(
          computation1: Optic<S, T1, A1, B>,
      ) => (computation2: Optic<S, T2, A2, B>) => Optic<S, T, A, B>