@@ -26,7 +26,6 @@ import kotlin.coroutines.*
2626 *
2727 * @param context -- the coroutine context from which the resulting completable is going to be signalled
2828 */
29- @ExperimentalCoroutinesApi
3029public fun Job.asCompletable (context : CoroutineContext ): Completable = rxCompletable(context) {
3130 this @asCompletable.join()
3231}
@@ -43,7 +42,6 @@ public fun Job.asCompletable(context: CoroutineContext): Completable = rxComplet
4342 *
4443 * @param context -- the coroutine context from which the resulting maybe is going to be signalled
4544 */
46- @ExperimentalCoroutinesApi
4745public fun <T > Deferred<T?>.asMaybe (context : CoroutineContext ): Maybe <T > = rxMaybe(context) {
4846 this @asMaybe.await()
4947}
@@ -60,7 +58,6 @@ public fun <T> Deferred<T?>.asMaybe(context: CoroutineContext): Maybe<T> = rxMay
6058 *
6159 * @param context -- the coroutine context from which the resulting single is going to be signalled
6260 */
63- @ExperimentalCoroutinesApi
6461public fun <T : Any > Deferred<T>.asSingle (context : CoroutineContext ): Single <T > = rxSingle(context) {
6562 this @asSingle.await()
6663}
@@ -75,7 +72,6 @@ public fun <T : Any> Deferred<T>.asSingle(context: CoroutineContext): Single<T>
7572 * resulting flow to specify a user-defined value and to control what happens when data is produced faster
7673 * than consumed, i.e. to control the back-pressure behavior. Check [callbackFlow] for more details.
7774 */
78- @ExperimentalCoroutinesApi
7975public fun <T : Any > ObservableSource<T>.asFlow (): Flow <T > = callbackFlow {
8076 val disposableRef = AtomicReference <Disposable >()
8177 val observer = object : Observer <T > {
@@ -108,7 +104,6 @@ public fun <T: Any> ObservableSource<T>.asFlow(): Flow<T> = callbackFlow {
108104 * inject additional context into the caller thread. By default, the [Unconfined][Dispatchers.Unconfined] dispatcher
109105 * is used, so calls are performed from an arbitrary thread.
110106 */
111- @ExperimentalCoroutinesApi
112107public fun <T : Any > Flow<T>.asObservable (context : CoroutineContext = EmptyCoroutineContext ) : Observable <T > = Observable .create { emitter ->
113108 /*
114109 * 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
141136 * inject additional context into the caller thread. By default, the [Unconfined][Dispatchers.Unconfined] dispatcher
142137 * is used, so calls are performed from an arbitrary thread.
143138 */
144- @ExperimentalCoroutinesApi
145139public fun <T : Any > Flow<T>.asFlowable (context : CoroutineContext = EmptyCoroutineContext ): Flowable <T > =
146140 Flowable .fromPublisher(asPublisher(context))
147141
0 commit comments