tuweni / org.apache.tuweni.concurrent / AsyncResult / thenScheduleBlockingRun

thenScheduleBlockingRun

abstract fun thenScheduleBlockingRun(vertx: Vertx!, runnable: Runnable!): AsyncCompletion! (source)

Returns a new completion that, when this result completes normally, completes after the given blocking action is executed on the vertx context.

Parameters

vertx - Vertx!: The vertx context.

runnable - Runnable!: The action to execute on the vertx context before completing the returned completion.

Return
AsyncCompletion!: A completion.

abstract fun thenScheduleBlockingRun(executor: WorkerExecutor!, runnable: Runnable!): AsyncCompletion! (source)

Returns a new completion that, when this result completes normally, completes after the given blocking action is executed on the vertx executor.

Parameters

executor - WorkerExecutor!: The vertx executor.

runnable - Runnable!: The action to execute on the vertx context before completing the returned completion.

Return
AsyncCompletion!: A completion.