Skip to content

Commit

Permalink
Merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
valentunn committed Sep 5, 2022
1 parent f5690d6 commit fb28757
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ fun <T> flowOf(producer: suspend () -> T) = flow {
emit(producer())
}

@OptIn(ExperimentalCoroutinesApi::class)
fun <T> accumulate(vararg flows: Flow<T>): Flow<List<T>> {
val flowsList = flows.mapIndexed { index, flow -> flow.map { index to flow } }
val resultOfFlows = MutableList<T?>(flowsList.size) { null }
Expand Down

0 comments on commit fb28757

Please sign in to comment.