Skip to content

Commit 4ca5d05

Browse files
committed
Minor. Rename rx controller
1 parent f013267 commit 4ca5d05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kotlinx-coroutines-rx/src/main/kotlin/asyncRx.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ import rx.subjects.AsyncSubject
1616
* @return Observable with single value containing expression returned from coroutine
1717
*/
1818
fun <T> asyncRx(
19-
coroutine c: Controller<T>.() -> Continuation<Unit>
19+
coroutine c: RxController<T>.() -> Continuation<Unit>
2020
): Observable<T> {
21-
val controller = Controller<T>()
21+
val controller = RxController<T>()
2222
c(controller).resume(Unit)
2323

2424
return controller.result
2525
}
2626

27-
class Controller<T> internal constructor() {
27+
class RxController<T> internal constructor() {
2828
internal val result: AsyncSubject<T> = AsyncSubject.create<T>()
2929

3030
suspend fun <V> Observable<V>.awaitFirst(x: Continuation<V>) {

0 commit comments

Comments
 (0)