Example usage for java.util.concurrent CompletableFuture thenApplyAsync

List of usage examples for java.util.concurrent CompletableFuture thenApplyAsync

Introduction

In this page you can find the example usage for java.util.concurrent CompletableFuture thenApplyAsync.

Prototype

public <U> CompletableFuture<U> thenApplyAsync(Function<? super T, ? extends U> fn) 

Source Link

Usage

From source file:io.flutter.inspector.DiagnosticsNode.java

public CompletableFuture<ArrayList<DiagnosticsNode>> getProperties(InspectorService.ObjectGroup objectGroup) {
    final CompletableFuture<ArrayList<DiagnosticsNode>> properties = objectGroup
            .getProperties(getDartDiagnosticRef());
    return properties.thenApplyAsync(this::trackPropertiesMatchingParameters);
}