public final class Async
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static java.util.concurrent.CompletionStage<java.lang.Void> |
runAsync(java.lang.Runnable runnable) |
|
static java.util.concurrent.CompletionStage<java.lang.Void> |
runAsync(java.lang.Runnable runnable,
java.util.concurrent.Executor executor) |
|
static <U> java.util.concurrent.CompletionStage<U> |
supplyAsync(java.util.function.Supplier<U> supplier) |
|
static <U> java.util.concurrent.CompletionStage<U> |
supplyAsync(java.util.function.Supplier<U> supplier,
java.util.concurrent.Executor executor) |
public static <U> java.util.concurrent.CompletionStage<U> supplyAsync(java.util.function.Supplier<U> supplier)
public static <U> java.util.concurrent.CompletionStage<U> supplyAsync(java.util.function.Supplier<U> supplier, java.util.concurrent.Executor executor)
public static java.util.concurrent.CompletionStage<java.lang.Void> runAsync(java.lang.Runnable runnable, java.util.concurrent.Executor executor)
public static java.util.concurrent.CompletionStage<java.lang.Void> runAsync(java.lang.Runnable runnable)
Copyright © 2018. All rights reserved.