Skip to content

Commit 8378ee3

Browse files
committed
Add missing inline to non-overlapping windowed
1 parent ff057ab commit 8378ee3

File tree

1 file changed

+2
-2
lines changed
  • kotlinx-coroutines-core/common/src/flow/operators

1 file changed

+2
-2
lines changed

kotlinx-coroutines-core/common/src/flow/operators/Chunk.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ fun <T, R> Flow<T>.windowed(size: Int, step: Int, partialWindows: Boolean, trans
1717
else overlappingWindowed(size, step, partialWindows, transform)
1818

1919

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

0 commit comments

Comments
 (0)