Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AsyncResult<T>

Encapsulates the result of an asynchronous operation.

Many operations in Vert.x APIs provide results back by passing an instance of this in a Handler.

The result can either have failed or succeeded.

If it failed then the cause of the failure is available with cause().

If it succeeded then the actual result is available with result()

Type parameters

  • T

Hierarchy

  • AsyncResult

Index

Methods

cause

  • A Throwable describing failure.

    Returns Throwable | null

failed

  • failed(): boolean
  • Did it fail?

    Returns boolean

result

  • result(): T | null
  • The result of the operation.

    Returns T | null

succeeded

  • succeeded(): boolean
  • Did it succeed?

    Returns boolean

Generated using TypeDoc