Skip to content

Commit c18271c

Browse files
committed
Promote channel property type in ActorScope and ProducerScope to Channel
1 parent 44e9b49 commit c18271c

File tree

2 files changed

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

2 files changed

+4
-4
lines changed

kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/channels/Actor.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 [actor] coroutine builder.
2828
*/
29-
public interface ActorScope<out E> : CoroutineScope, ReceiveChannel<E> {
29+
public interface ActorScope<E> : CoroutineScope, ReceiveChannel<E> {
3030
/**
3131
* A reference to the mailbox channel that this coroutine [receives][receive] messages from.
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 [ReceiveChannel] functions on this interface delegate to
3535
* the channel instance returned by this function.
3636
*/
37-
val channel: ReceiveChannel<E>
37+
val channel: Channel<E>
3838
}
3939

4040
/**

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<in E> : CoroutineScope, SendChannel<E> {
29+
public interface ProducerScope<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: SendChannel<E>
37+
val channel: Channel<E>
3838
}
3939

4040
/**

0 commit comments

Comments
 (0)