vertx / io.vertx.reactivex.ext.unit / Async

Async

open class Async : Completion<Void>

An asynchronous exit point for a test. NOTE: This class has been automatically generated from the io.vertx.ext.unit.Async non RX-ified interface using Vert.x codegen.

Constructors

<init>

Async(delegate: Async)

Properties

__TYPE_ARG

static val __TYPE_ARG: TypeArg<Async>

Inherited Properties

__typeArg_0

val __typeArg_0: TypeArg<T>

Functions

complete

open fun complete(): Unit

Signals the asynchronous operation is done, this method must be called with a count greater than 0, otherwise it throws an IllegalStateException to signal the error.

count

open fun count(): Int

countDown

open fun countDown(): Unit

Count down the async.

equals

open fun equals(other: Any?): Boolean

getDelegate

open fun getDelegate(): Async

handler

open fun handler(completionHandler: Handler<AsyncResult<Void>>): Unit

Completion handler to receive a completion signal when this completions completes.

hashCode

open fun hashCode(): Int

newInstance

open static fun newInstance(arg: Async): Async

resolve

open fun resolve(future: Future<Void>): Unit

Completes the future upon completion, otherwise fails it.

rxHandler

open fun rxHandler(): Maybe<Void>

Completion handler to receive a completion signal when this completions completes.

toString

open fun toString(): String

Inherited Functions

await

open fun await(timeoutMillis: Long): Unit

Cause the current thread to wait until this completion completes with a configurable timeout. If completion times out or the current thread is interrupted, an exception will be thrown.

open fun await(): Unit

Cause the current thread to wait until this completion completes. If the current thread is interrupted, an exception will be thrown.

awaitSuccess

open fun awaitSuccess(): Unit

Cause the current thread to wait until this completion completes and succeeds. If the current thread is interrupted or the suite fails, an exception will be thrown.

open fun awaitSuccess(timeoutMillis: Long): Unit

Cause the current thread to wait until this completion completes and succeeds with a configurable timeout. If completion times out or the current thread is interrupted or the suite fails, an exception will be thrown.

isCompleted

open fun isCompleted(): Boolean

isFailed

open fun isFailed(): Boolean

isSucceeded

open fun isSucceeded(): Boolean

newInstance

open static fun <T : Any> newInstance(arg: Completion<Any>): Completion<T>
open static fun <T : Any> newInstance(arg: Completion<Any>, __typeArg_T: TypeArg<T>): Completion<T>