You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@stanch According to doc: Failed tasks should call reportFailure to let the ExecutionContext log the problem or whatever is appropriate for the implementation.
And as I've tested with the code below, method reportFailure was not called.
Future(throw new Exception("Test"))(customExecutionContext)
Here's another workaround.
Future(throw new Exception("Test")) onFailure {
case exc: Exception => exc.printStackTrace()
}
This code does nothing at all, the app doesn't force close, and the error isn't even logged. As a workaround, you can do this:
I don't know if this can by fixed by the gradle plugin, but if not, you should probably use the workaround in your code.
The text was updated successfully, but these errors were encountered: