Package io.activej.async.process
Interface AsyncExecutor
-
public interface AsyncExecutor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <T> @NotNull Promise<T>call(@NotNull Callable<T> callable)<T> @NotNull Promise<T>execute(@NotNull AsyncSupplier<T> supplier)default @NotNull Promise<Void>run(@NotNull Runnable runnable)
-
-
-
Method Detail
-
execute
@NotNull <T> @NotNull Promise<T> execute(@NotNull @NotNull AsyncSupplier<T> supplier) throws RejectedExecutionException
- Throws:
RejectedExecutionException
-
run
@NotNull default @NotNull Promise<Void> run(@NotNull @NotNull Runnable runnable) throws RejectedExecutionException
- Throws:
RejectedExecutionException
-
call
@NotNull default <T> @NotNull Promise<T> call(@NotNull @NotNull Callable<T> callable) throws RejectedExecutionException
- Throws:
RejectedExecutionException
-
-