Search in sources :

Example 16 with CompositeFuture

use of io.vertx.core.CompositeFuture in project vert.x by eclipse.

the class FutureTest method testAllWithEmptyList.

@Test
public void testAllWithEmptyList() {
    CompositeFuture composite = CompositeFuture.all(Collections.emptyList());
    assertTrue(composite.isComplete());
}
Also used : CompositeFuture(io.vertx.core.CompositeFuture) Test(org.junit.Test)

Example 17 with CompositeFuture

use of io.vertx.core.CompositeFuture in project vert.x by eclipse.

the class FutureTest method testJoinWithEmptyList.

@Test
public void testJoinWithEmptyList() {
    CompositeFuture composite = CompositeFuture.join(Collections.emptyList());
    assertTrue(composite.isComplete());
}
Also used : CompositeFuture(io.vertx.core.CompositeFuture) Test(org.junit.Test)

Aggregations

CompositeFuture (io.vertx.core.CompositeFuture)17 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)10 NoStackTraceThrowable (io.vertx.core.impl.NoStackTraceThrowable)6 Test (org.junit.Test)6 Future (io.vertx.core.Future)2 ArrayList (java.util.ArrayList)2