Class List Method List File List

# Class: VertxUnit::Async

Inherits:
  Completion
  - Object
  - Completion
  - VertxUnit::Async
  show all
Defined in:
  /Users/julien/java/vertx-aggregator/modules/vertx-unit/src/main/resources/vertx-unit/async.rb

## Overview

An asynchronous exit point for a test.

## Instance Method Summary (collapse)

- - (void) complete
  Signals the asynchronous operation is done, this method should be called only once, if the method is called another time it will throw an IllegalStateException to signal the error.

### Methods inherited from Completion

#await, #await_success, #completed?, #failed?, #handler, #resolve, #succeeded?

## Instance Method Details

### - (`void`) complete

This method returns an undefined value.

Signals the asynchronous operation is done, this method should be called only once, if the method is called another time it will throw an `IllegalStateException` to signal the error.

Raises:

- (`ArgumentError`)

    21
    22
    23
    24
    25
    26
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-unit/src/main/resources/vertx-unit/async.rb', line 21

    def complete
      if !block_given?
        return @j_del.java_method(:complete, []).call()
      end
      raise ArgumentError, "Invalid arguments when calling complete()"
    end