Skip to content

Commit e233bf9

Browse files
committed
Suppress unchecked cast warning
1 parent 58246ca commit e233bf9

File tree

1 file changed

+1
-0
lines changed
  • reactive/kotlinx-coroutines-rx2/src/main/kotlin/kotlinx/coroutines/experimental/rx2

1 file changed

+1
-0
lines changed

reactive/kotlinx-coroutines-rx2/src/main/kotlin/kotlinx/coroutines/experimental/rx2/RxAwait.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ private suspend fun <T> ObservableSource<T>.awaitOne(
188188
}
189189
}
190190

191+
@Suppress("UNCHECKED_CAST")
191192
override fun onComplete() {
192193
if (seenValue) {
193194
if (cont.isActive) cont.resume(value as T)

0 commit comments

Comments
 (0)