Class: VertxUnit::Async

Inherits:
Completion show all
Defined in:
/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-unit/async.rb

Overview

An asynchronous exit point for a test.

Instance Method Summary (collapse)

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 must be called with a count greater than 0, otherwise it throw an IllegalStateException to signal the error.

Raises:

  • (ArgumentError)


37
38
39
40
41
42
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-unit/async.rb', line 37

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

- (Fixnum) count

@return the current count

Returns:

  • (Fixnum)

Raises:

  • (ArgumentError)


20
21
22
23
24
25
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-unit/async.rb', line 20

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

- (void) count_down

This method returns an undefined value.

Count down the async.

Raises:

  • (ArgumentError)


28
29
30
31
32
33
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-unit/async.rb', line 28

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