Skip to content

Commit

Permalink
Add missing inline to non-overlapping windowed
Browse files Browse the repository at this point in the history
  • Loading branch information
circusmagnus committed Sep 20, 2019
1 parent ff057ab commit 8378ee3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kotlinx-coroutines-core/common/src/flow/operators/Chunk.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ fun <T, R> Flow<T>.windowed(size: Int, step: Int, partialWindows: Boolean, trans
else overlappingWindowed(size, step, partialWindows, transform)


private fun <T, R> Flow<T>.nonOverlappingWindowed(
private inline fun <T, R> Flow<T>.nonOverlappingWindowed(
size: Int,
step: Int,
partialWindows: Boolean,
transform: suspend (List<T>) -> R
crossinline transform: suspend (List<T>) -> R
): Flow<R> {
require(size in 1..step) { "Size should be non-negative, and equal to or lesser than step, but was size: $size, step: $step"}

Expand Down

0 comments on commit 8378ee3

Please sign in to comment.