We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c70eb11 commit 192199eCopy full SHA for 192199e
rxjava/src/main/java/com/parse/rxjava/Extensions.kt
@@ -7,7 +7,7 @@ import com.parse.boltsinternal.Task
7
import io.reactivex.rxjava3.core.Completable
8
import io.reactivex.rxjava3.core.Single
9
10
-fun <T> Task<T>.toSingle(): Single<T> {
+fun <T : Any> Task<T>.toSingle(): Single<T> {
11
return Single.defer {
12
this.waitForCompletion()
13
if (isFaulted) {
0 commit comments