Tuple22ResourceOps<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22>
extension Tuple22ResourceOps<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> on RecordProvides additional functions on a tuple of 22 Resources.
Properties
parTupled extension no setter
Resource<Record> get parTupledCreates a new Resource 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 Tuple22ResourceOps<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> extension
Implementation
Resource<
(
T1,
T2,
T3,
T4,
T5,
T6,
T7,
T8,
T9,
T10,
T11,
T12,
T13,
T14,
T15,
T16,
T17,
T18,
T19,
T20,
T21,
T22,
)
>
get parTupled => Resource.both(init.parTupled, last).map((t) => t.$1.appended(t.$2));tupled extension no setter
Resource<Record> get tupledCreates a new Resource 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 Tuple22ResourceOps<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> extension
Implementation
Resource<
(
T1,
T2,
T3,
T4,
T5,
T6,
T7,
T8,
T9,
T10,
T11,
T12,
T13,
T14,
T15,
T16,
T17,
T18,
T19,
T20,
T21,
T22,
)
>
get tupled => init.tupled.flatMap((x) => last.map(x.appended));Methods
mapN() extension
Resource<T23> mapN<T23>(
T23 Function(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22) fn,
)Creates a new Resource that applies fn to the values of each respective tuple member if all Resources 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 Tuple22ResourceOps<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> extension
Implementation
Resource<T23> mapN<T23>(
Function22<
T1,
T2,
T3,
T4,
T5,
T6,
T7,
T8,
T9,
T10,
T11,
T12,
T13,
T14,
T15,
T16,
T17,
T18,
T19,
T20,
T21,
T22,
T23
>
fn,
) => tupled.map(fn.tupled);parMapN() extension
Resource<T23> parMapN<T23>(
T23 Function(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22) fn,
)Creates a new Resource that applies fn to the values of each respective tuple member if all Resources 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 Tuple22ResourceOps<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> extension
Implementation
Resource<T23> parMapN<T23>(
Function22<
T1,
T2,
T3,
T4,
T5,
T6,
T7,
T8,
T9,
T10,
T11,
T12,
T13,
T14,
T15,
T16,
T17,
T18,
T19,
T20,
T21,
T22,
T23
>
fn,
) => parTupled.map(fn.tupled);