public class AsyncUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <R> R |
await(Consumer<CompletableFuture<R>> completer) |
static <R> R |
await(int time,
TimeUnit unit,
Consumer<CompletableFuture<R>> completer) |
static ProgressRequestBody.ProgressRequestListener |
createProgressRequestListener(ApiCallback<?> callback) |
static ProgressResponseBody.ProgressListener |
createProgressResponseListener(ApiCallback<?> callback) |
public static ProgressResponseBody.ProgressListener createProgressResponseListener(ApiCallback<?> callback)
public static ProgressRequestBody.ProgressRequestListener createProgressRequestListener(ApiCallback<?> callback)
public static <R> R await(Consumer<CompletableFuture<R>> completer)
public static <R> R await(int time, TimeUnit unit, Consumer<CompletableFuture<R>> completer)
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries