vertx / io.vertx.reactivex.core / Future / tryComplete

# tryComplete

`open fun tryComplete(result: T): Boolean`

Set the failure. Any handler will be called, if there is one, and the future will be marked as completed.

### Parameters

`result` - the result

Return
false when the future is already completed

`open fun tryComplete(): Boolean`

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

Return
false when the future is already completed