File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/channels Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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/* *
You can’t perform that action at this time.
0 commit comments