提交 9106005b 编写于 作者: Z Zach Klippenstein

Allow awaitResponse() to be called with nullable type parameter.

上级 3adf79a9
......@@ -83,7 +83,7 @@ suspend fun <T : Any> Call<T?>.await(): T? {
}
}
suspend fun <T : Any> Call<T>.awaitResponse(): Response<T> {
suspend fun <T> Call<T>.awaitResponse(): Response<T> {
return suspendCancellableCoroutine { continuation ->
continuation.invokeOnCancellation {
cancel()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册