public class AsyncUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
block(CompletableFuture<T> input)
Helper method to wrap an async call into a blocking one and make sure to
convert all checked exceptions into their correct runtime counterparts.
|
public static <T> T block(CompletableFuture<T> input)
T - the generic type to return.input - the future as input.Copyright © 2020 Couchbase, Inc.. All rights reserved.