vertx / io.vertx.reactivex.core / Future / setHandler

setHandler

open fun setHandler(handler: Handler<AsyncResult<T>>): Future<T>

Set a handler for the result.

If the future has already been completed it will be called immediately. Otherwise it will be called when the future is completed.

Parameters

handler - the Handler that will be called with the result

Return
a reference to this, so it can be used fluently