Class List Method List File List

# Class: VertxUnit::Async

Inherits:
  Object
  - Object
  - 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.

## 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`)

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

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