Skip to content

Commit f1d9a4e

Browse files
committed
Rollback change to ProducerScope
1 parent 1117850 commit f1d9a4e

File tree

1 file changed

+2
-2
lines changed
  • kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/channels

1 file changed

+2
-2
lines changed

kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/channels/Produce.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ import kotlin.coroutines.experimental.startCoroutine
2626
/**
2727
* Scope for [produce] coroutine builder.
2828
*/
29-
public interface ProducerScope<E> : CoroutineScope, SendChannel<E> {
29+
public interface ProducerScope<in E> : CoroutineScope, SendChannel<E> {
3030
/**
3131
* A reference to the channel that this coroutine [sends][send] elements to.
3232
* It is provided for convenience, so that the code in the coroutine can refer
3333
* to the channel as `channel` as apposed to `this`.
3434
* All the [SendChannel] functions on this interface delegate to
3535
* the channel instance returned by this function.
3636
*/
37-
val channel: Channel<E>
37+
val channel: SendChannel<E>
3838
}
3939

4040
/**

0 commit comments

Comments
 (0)