Skip to content

Commit 0c7e028

Browse files
committed
Annotate FutureController and RxController with '@AllowSuspendExtensions'
1 parent b8fc343 commit 0c7e028

File tree

2 files changed

+3
-1
lines changed
  • kotlinx-coroutines-async/src/main/kotlin
  • kotlinx-coroutines-rx/src/main/kotlin

2 files changed

+3
-1
lines changed

kotlinx-coroutines-async/src/main/kotlin/async.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ fun asyncUI(
5959

6060
typealias ContinuationWrapper = (() -> Unit) -> Unit
6161

62-
open class FutureController<T>(
62+
@AllowSuspendExtensions
63+
class FutureController<T>(
6364
private val continuationWrapper: ContinuationWrapper?
6465
) {
6566
val future = CompletableFuture<T>()

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ fun <T> asyncRx(
2424
return controller.result
2525
}
2626

27+
@AllowSuspendExtensions
2728
class RxController<T> internal constructor() {
2829
internal val result: AsyncSubject<T> = AsyncSubject.create<T>()
2930

0 commit comments

Comments
 (0)