@@ -26,7 +26,6 @@ import kotlin.coroutines.*
26
26
*
27
27
* @param context -- the coroutine context from which the resulting completable is going to be signalled
28
28
*/
29
- @ExperimentalCoroutinesApi
30
29
public fun Job.asCompletable (context : CoroutineContext ): Completable = rxCompletable(context) {
31
30
this @asCompletable.join()
32
31
}
@@ -43,7 +42,6 @@ public fun Job.asCompletable(context: CoroutineContext): Completable = rxComplet
43
42
*
44
43
* @param context -- the coroutine context from which the resulting maybe is going to be signalled
45
44
*/
46
- @ExperimentalCoroutinesApi
47
45
public fun <T > Deferred<T?>.asMaybe (context : CoroutineContext ): Maybe <T > = rxMaybe(context) {
48
46
this @asMaybe.await()
49
47
}
@@ -60,7 +58,6 @@ public fun <T> Deferred<T?>.asMaybe(context: CoroutineContext): Maybe<T> = rxMay
60
58
*
61
59
* @param context -- the coroutine context from which the resulting single is going to be signalled
62
60
*/
63
- @ExperimentalCoroutinesApi
64
61
public fun <T : Any > Deferred<T>.asSingle (context : CoroutineContext ): Single <T > = rxSingle(context) {
65
62
this @asSingle.await()
66
63
}
@@ -75,7 +72,6 @@ public fun <T : Any> Deferred<T>.asSingle(context: CoroutineContext): Single<T>
75
72
* resulting flow to specify a user-defined value and to control what happens when data is produced faster
76
73
* than consumed, i.e. to control the back-pressure behavior. Check [callbackFlow] for more details.
77
74
*/
78
- @ExperimentalCoroutinesApi
79
75
public fun <T : Any > ObservableSource<T>.asFlow (): Flow <T > = callbackFlow {
80
76
val disposableRef = AtomicReference <Disposable >()
81
77
val observer = object : Observer <T > {
@@ -108,7 +104,6 @@ public fun <T: Any> ObservableSource<T>.asFlow(): Flow<T> = callbackFlow {
108
104
* inject additional context into the caller thread. By default, the [Unconfined][Dispatchers.Unconfined] dispatcher
109
105
* is used, so calls are performed from an arbitrary thread.
110
106
*/
111
- @ExperimentalCoroutinesApi
112
107
public fun <T : Any > Flow<T>.asObservable (context : CoroutineContext = EmptyCoroutineContext ) : Observable <T > = Observable .create { emitter ->
113
108
/*
114
109
* ATOMIC is used here to provide stable behaviour of subscribe+dispose pair even if
@@ -141,7 +136,6 @@ public fun <T: Any> Flow<T>.asObservable(context: CoroutineContext = EmptyCorout
141
136
* inject additional context into the caller thread. By default, the [Unconfined][Dispatchers.Unconfined] dispatcher
142
137
* is used, so calls are performed from an arbitrary thread.
143
138
*/
144
- @ExperimentalCoroutinesApi
145
139
public fun <T : Any > Flow<T>.asFlowable (context : CoroutineContext = EmptyCoroutineContext ): Flowable <T > =
146
140
Flowable .fromPublisher(asPublisher(context))
147
141
0 commit comments