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
21
21
import org.reactivestreams.Publisher
22
22
import org.reactivestreams.Subscriber
23
23
import org.reactivestreams.Subscription
24
+ import java.io.Closeable
24
25
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater
25
26
26
27
/* *
27
28
* Return type for [Publisher.open] that can be used to [receive] elements from the
28
29
* subscription and to manually [close] it.
29
30
*/
30
- public interface SubscriptionReceiveChannel <out T > : ReceiveChannel <T > {
31
+ public interface SubscriptionReceiveChannel <out T > : ReceiveChannel <T >, Closeable {
31
32
/* *
32
33
* Closes this subscription channel.
33
34
*/
34
- public fun close ()
35
+ public override fun close ()
35
36
}
36
37
37
38
/* *
Original file line number Diff line number Diff line change @@ -21,17 +21,18 @@ import kotlinx.coroutines.experimental.channels.ReceiveChannel
21
21
import rx.Observable
22
22
import rx.Subscriber
23
23
import rx.Subscription
24
+ import java.io.Closeable
24
25
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater
25
26
26
27
/* *
27
28
* Return type for [Observable.open] that can be used to [receive] elements from the
28
29
* subscription and to manually [close] it.
29
30
*/
30
- public interface SubscriptionReceiveChannel <out T > : ReceiveChannel <T > {
31
+ public interface SubscriptionReceiveChannel <out T > : ReceiveChannel <T >, Closeable {
31
32
/* *
32
33
* Closes this subscription channel.
33
34
*/
34
- public fun close ()
35
+ public override fun close ()
35
36
}
36
37
37
38
/* *
Original file line number Diff line number Diff line change @@ -22,16 +22,17 @@ import io.reactivex.Observer
22
22
import io.reactivex.disposables.Disposable
23
23
import kotlinx.coroutines.experimental.channels.LinkedListChannel
24
24
import kotlinx.coroutines.experimental.channels.ReceiveChannel
25
+ import java.io.Closeable
25
26
26
27
/* *
27
28
* Return type for [Observable.open] that can be used to [receive] elements from the
28
29
* subscription and to manually [close] it.
29
30
*/
30
- public interface SubscriptionReceiveChannel <out T > : ReceiveChannel <T > {
31
+ public interface SubscriptionReceiveChannel <out T > : ReceiveChannel <T >, Closeable {
31
32
/* *
32
33
* Closes this subscription channel.
33
34
*/
34
- public fun close ()
35
+ public override fun close ()
35
36
}
36
37
37
38
/* *
You can’t perform that action at this time.
0 commit comments