File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
kotlinx-coroutines-reactive/src/main/kotlin/kotlinx/coroutines/experimental/reactive
kotlinx-coroutines-rx1/src/main/kotlin/kotlinx/coroutines/experimental/rx1
kotlinx-coroutines-rx2/src/main/kotlin/kotlinx/coroutines/experimental/rx2 Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -21,17 +21,18 @@ import kotlinx.coroutines.experimental.channels.ReceiveChannel
2121import org.reactivestreams.Publisher
2222import org.reactivestreams.Subscriber
2323import org.reactivestreams.Subscription
24+ import java.io.Closeable
2425import java.util.concurrent.atomic.AtomicIntegerFieldUpdater
2526
2627/* *
2728 * Return type for [Publisher.open] that can be used to [receive] elements from the
2829 * subscription and to manually [close] it.
2930 */
30- public interface SubscriptionReceiveChannel <out T > : ReceiveChannel <T > {
31+ public interface SubscriptionReceiveChannel <out T > : ReceiveChannel <T >, Closeable {
3132 /* *
3233 * Closes this subscription channel.
3334 */
34- public fun close ()
35+ public override fun close ()
3536}
3637
3738/* *
Original file line number Diff line number Diff line change @@ -21,17 +21,18 @@ import kotlinx.coroutines.experimental.channels.ReceiveChannel
2121import rx.Observable
2222import rx.Subscriber
2323import rx.Subscription
24+ import java.io.Closeable
2425import java.util.concurrent.atomic.AtomicIntegerFieldUpdater
2526
2627/* *
2728 * Return type for [Observable.open] that can be used to [receive] elements from the
2829 * subscription and to manually [close] it.
2930 */
30- public interface SubscriptionReceiveChannel <out T > : ReceiveChannel <T > {
31+ public interface SubscriptionReceiveChannel <out T > : ReceiveChannel <T >, Closeable {
3132 /* *
3233 * Closes this subscription channel.
3334 */
34- public fun close ()
35+ public override fun close ()
3536}
3637
3738/* *
Original file line number Diff line number Diff line change @@ -22,16 +22,17 @@ import io.reactivex.Observer
2222import io.reactivex.disposables.Disposable
2323import kotlinx.coroutines.experimental.channels.LinkedListChannel
2424import kotlinx.coroutines.experimental.channels.ReceiveChannel
25+ import java.io.Closeable
2526
2627/* *
2728 * Return type for [Observable.open] that can be used to [receive] elements from the
2829 * subscription and to manually [close] it.
2930 */
30- public interface SubscriptionReceiveChannel <out T > : ReceiveChannel <T > {
31+ public interface SubscriptionReceiveChannel <out T > : ReceiveChannel <T >, Closeable {
3132 /* *
3233 * Closes this subscription channel.
3334 */
34- public fun close ()
35+ public override fun close ()
3536}
3637
3738/* *
You can’t perform that action at this time.
0 commit comments