Firebase-android-sdk: Could you make ProvideError public?

Created on 27 Jan 2020  ·  3Comments  ·  Source: firebase/firebase-android-sdk

What feature would you like to see?

protected interface ProvideError {
  Exception getError();
}

This interface public

How would you use it?

Allowing it to be public, you could then create Kotlin extension on the highest generic upper bound of StorageTask like:

fun Continuation<Unit>.resume(): Unit =
    resumeWith(Result.success(Unit))

suspend fun <T : StorageTask.ProvideError> StorageTask<T>.await() = suspendCancellableCoroutine<Unit> { cont ->
    val l = OnCompleteListener<T> { cont.resume() }
    addOnCompleteListener(l)
    cont.invokeOnCancellation { removeOnCompleteListener(l) }
}
storage feature request

Most helpful comment

Thank you for sending this feature request. We will keep this FR open and update it as we prioritize new features. Thank you.

All 3 comments

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

Thank you for sending this feature request. We will keep this FR open and update it as we prioritize new features. Thank you.

I will look at this soon, but this requires some "paperwork" on our end since it modifies the Public API.

Was this page helpful?
0 / 5 - 0 ratings