await never ends when using with ObserverableFuture
If I wrap my API call into ObservableFuture, it hides an error into its error field and does not let it propagate. So the code execution stucks on await as a future never resolves.
It happens on fromJson/toJson type cast errors.
I can't even see the error in the console, but only by means of debugger. In order to see logs I have to wrap the inner api call into .catchError
Proposal:
ObservableFuture should rethrow error, so I could see it in the console, along with interrupting the awaiting.
Agree, this would be a good thing to have ...PR possible ?
Unfortunately, I have not too much time to support your package, as I have a full-time job... and I'm not very familiar with the inner workings of your package. I was hoping that you would take the time to fix it yourself.