public class Resources extends Object
Constructor and Description |
---|
Resources() |
Modifier and Type | Method and Description |
---|---|
static <T extends AutoCloseable,U> |
asyncTryWithResource(T resource,
Function<T,CompletionStage<U>> body) |
public static <T extends AutoCloseable,U> CompletionStage<U> asyncTryWithResource(T resource, Function<T,CompletionStage<U>> body)