Uses of Enum Class
dev.crafty.core.task.api.TargetThread
Packages that use TargetThread
-
Uses of TargetThread in dev.crafty.core.task.api
Methods in dev.crafty.core.task.api that return TargetThreadModifier and TypeMethodDescriptionstatic TargetThreadReturns the enum constant of this class with the specified name.static TargetThread[]TargetThread.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in dev.crafty.core.task.api with parameters of type TargetThreadModifier and TypeMethodDescriptionvoidTask.run(Runnable action, TargetThread targetThread) Executes a given task on a specified target thread.<T> voidTask.run(Callable<T> action, Consumer<T> onSuccess, TargetThread targetThread) Executes a given task on a specified target thread and returns the result.<T> voidTask.run(Callable<T> action, Consumer<T> onSuccess, Runnable onFailure, TargetThread targetThread) Executes a given task on a specified target thread and returns the result.voidTask.schedule(Runnable action, Duration delay, TargetThread targetThread) Schedules a task for execution on a specified target thread after a specified delay.<T> voidTask.schedule(Callable<T> action, Consumer<T> onSuccess, Runnable onFailure, Duration delay, TargetThread targetThread) Schedules a task for execution on a specified target thread after a specified delay and returns the result of the task execution.<T> voidTask.schedule(Callable<T> action, Consumer<T> onSuccess, Duration delay, TargetThread targetThread) Schedules a task for execution on a specified target thread after a specified delay and returns the result of the task execution. -
Uses of TargetThread in dev.crafty.core.task.providers
Methods in dev.crafty.core.task.providers with parameters of type TargetThreadModifier and TypeMethodDescriptionvoidTaskProvider.run(Runnable action, TargetThread targetThread) <T> voidTaskProvider.run(Callable<T> action, Consumer<T> onSuccess, TargetThread targetThread) <T> voidTaskProvider.run(Callable<T> action, Consumer<T> onSuccess, Runnable onFailure, TargetThread targetThread) voidTaskProvider.schedule(Runnable action, @NotNull Duration delay, TargetThread targetThread) <T> voidTaskProvider.schedule(Callable<T> action, Consumer<T> onSuccess, Runnable onFailure, Duration delay, TargetThread targetThread) <T> voidTaskProvider.schedule(Callable<T> action, Consumer<T> onSuccess, Duration delay, TargetThread targetThread)