tupled2<A, B> static method

Task<Tuple2<A, B>> tupled2<A, B>(
  1. Task<A> a,
  2. Task<B> b
)

Implementation

static Task<Tuple2<A, B>> tupled2<A, B>(Task<A> a, Task<B> b) =>
  a.flatMap((a) => b.map((b) => tuple2(a, b)));