Example usage for io.vertx.core AsyncResult map

List of usage examples for io.vertx.core AsyncResult map

Introduction

In this page you can find the example usage for io.vertx.core AsyncResult map.

Prototype

default <V> AsyncResult<V> map(V value) 

Source Link

Document

Map the result of this async result to a specific value .

When this async result succeeds, this value will succeeed the async result returned by this method call.

When this async result fails, the failure will be propagated to the returned async result.

Usage

From source file:io.reactiverse.pgclient.impl.PgResultBuilder.java

License:Apache License

@Override
public void handle(AsyncResult<Boolean> res) {
    suspended = res.succeeded() && res.result();
    handler.handle((AsyncResult<L>) res.map(first));
}