withErrorCallback

open fun withErrorCallback(callback: Callback<E>): Future<V, E>

Give a callback if the Future returns an error.