vertx / io.vertx.rxjava.core / Future / tryFail

tryFail

open fun tryFail(cause: Throwable): Boolean

Try to set the failure. When it happens, any handler will be called, if there is one, and the future will be marked as completed.

Parameters

cause - the failure cause

Return
false when the future is already completed

open fun tryFail(failureMessage: String): Boolean

Try to set the failure. When it happens, any handler will be called, if there is one, and the future will be marked as completed.

Parameters

failureMessage - the failure message

Return
false when the future is already completed