Uses of Record Class
org.tavall.couriers.api.concurrent.AsyncTask.ScopeOptions
Packages that use AsyncTask.ScopeOptions
-
Uses of AsyncTask.ScopeOptions in org.tavall.couriers.api.concurrent
Methods in org.tavall.couriers.api.concurrent that return AsyncTask.ScopeOptionsModifier and TypeMethodDescriptionstatic AsyncTask.ScopeOptionsAsyncTask.ScopeOptions.defaults()AsyncTask.ScopeOptions.withThreadFactory(ThreadFactory tf) AsyncTask.ScopeOptions.withTimeout(Duration timeout) Methods in org.tavall.couriers.api.concurrent with parameters of type AsyncTask.ScopeOptionsModifier and TypeMethodDescriptionstatic <T> TAsyncTask.runAnySuccessAsync(Collection<? extends Callable<? extends T>> tasks, AsyncTask.ScopeOptions options) "First success wins" helper: cancels the other subtasks when one succeeds.static <T> TAsyncTask.runAsync(Callable<? extends T> task, AsyncTask.ScopeOptions options) Runs one task "async inside, sync outside": fork in a new (virtual) thread, join, return result.static <T> CompletableFuture<T> AsyncTask.runFuture(Callable<? extends T> task, AsyncTask.ScopeOptions options) static <T> List<T> AsyncTask.runMultipleAsync(Collection<? extends Callable<? extends T>> tasks, AsyncTask.ScopeOptions options) Runs tasks concurrently and returns results, FAIL-FAST style (throws if any task fails).static <T> BatchResult<T> AsyncTask.runMultipleAsync(List<? extends Callable<? extends T>> tasks, AsyncTask.ScopeOptions options, int cancelAfterFailures, boolean throwOnFailure) The "boolean knobs" batch runner: