Skip to content

Commit 9f79186

Browse files
committed
Deprecate ReceiveChannel<T>.collect
1 parent 0f94304 commit 9f79186

File tree

1 file changed

+1
-0
lines changed
  • integration/kotlinx-coroutines-jdk8/src/channels8

1 file changed

+1
-0
lines changed

integration/kotlinx-coroutines-jdk8/src/channels8/Channels.kt

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public fun <E : Any> ReceiveChannel<E>.asStream(): Stream<E> = StreamSupport.str
3333
/**
3434
* Applies the [collector] to the [ReceiveChannel]
3535
*/
36+
@Deprecated("No replacement")
3637
public suspend fun <T, A : Any, R> ReceiveChannel<T>.collect(collector: Collector<T, A, R>): R {
3738
val container: A = collector.supplier().get()
3839
val accumulator: BiConsumer<A, T> = collector.accumulator()

0 commit comments

Comments
 (0)