Tuple3IOOps<T1, T2, T3>
extension Tuple3IOOps<T1, T2, T3> on RecordProvides additional functions on a tuple of 3 IOs.
Properties
parTupled extension no setter
IO<Record> get parTupledCreates a new IO that will return the tuple of all items if they all evaluate successfully. If any item fails or is canceled, the first instance encountered will be returned. Items are evaluated asynchronously.
Available on Record, provided by the Tuple3IOOps<T1, T2, T3> extension
Implementation
IO<(T1, T2, T3)> get parTupled => IO.both(init.parTupled, last).map((t) => t.$1.appended(t.$2));tupled extension no setter
IO<Record> get tupledCreates a new IO that will return the tuple of all items if they all evaluate successfully. If any item fails or is canceled, the first instance encountered will be returned. Each item is evaluated synchronously.
Available on Record, provided by the Tuple3IOOps<T1, T2, T3> extension
Implementation
IO<(T1, T2, T3)> get tupled => init.tupled.flatMap((x) => last.map(x.appended));Methods
flatMapN() extension
Creates a new IO that applies fn to the values of each respective tuple member if all IOs succeed. If any item fails or is canceled, the first instance encountered will be returned. Each item is evaluated synchronously.
Available on Record, provided by the Tuple3IOOps<T1, T2, T3> extension
Implementation
IO<T4> flatMapN<T4>(Function3<T1, T2, T3, IO<T4>> fn) => tupled.flatMap(fn.tupled);mapN() extension
IO<T4> mapN<T4>(T4 Function(T1, T2, T3) fn)Creates a new IO that applies fn to the values of each respective tuple member if all IOs succeed. If any item fails or is canceled, the first instance encountered will be returned. Each item is evaluated synchronously.
Available on Record, provided by the Tuple3IOOps<T1, T2, T3> extension
Implementation
IO<T4> mapN<T4>(Function3<T1, T2, T3, T4> fn) => tupled.map(fn.tupled);parMapN() extension
IO<T4> parMapN<T4>(T4 Function(T1, T2, T3) fn)Creates a new IO that applies fn to the values of each respective tuple member if all IOs succeed. If any item fails or is canceled, the first instance encountered will be returned. Each item is evaluated synchronously.
Available on Record, provided by the Tuple3IOOps<T1, T2, T3> extension
Implementation
IO<T4> parMapN<T4>(Function3<T1, T2, T3, T4> fn) => parTupled.map(fn.tupled);