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 TargetThread
Returns 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 TypeMethodDescriptionvoid
Task.run
(Runnable action, TargetThread targetThread) Executes a given task on a specified target thread.<T> void
Task.run
(Callable<T> action, Consumer<T> onSuccess, TargetThread targetThread) Executes a given task on a specified target thread and returns the result.<T> void
Task.run
(Callable<T> action, Consumer<T> onSuccess, Runnable onFailure, TargetThread targetThread) Executes a given task on a specified target thread and returns the result.void
Task.schedule
(Runnable action, UnitNumber<TimeUnit> delay, TargetThread targetThread) Schedules a task for execution on a specified target thread after a specified delay.<T> void
Task.schedule
(Callable<T> action, Consumer<T> onSuccess, UnitNumber<TimeUnit> 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> void
Task.schedule
(Callable<T> action, Consumer<T> onSuccess, Runnable onFailure, UnitNumber<TimeUnit> 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 TypeMethodDescriptionvoid
TaskProvider.run
(Runnable action, TargetThread targetThread) <T> void
TaskProvider.run
(Callable<T> action, Consumer<T> onSuccess, TargetThread targetThread) <T> void
TaskProvider.run
(Callable<T> action, Consumer<T> onSuccess, Runnable onFailure, TargetThread targetThread) void
TaskProvider.schedule
(Runnable action, @NotNull UnitNumber<TimeUnit> delay, TargetThread targetThread) <T> void
TaskProvider.schedule
(Callable<T> action, Consumer<T> onSuccess, UnitNumber<TimeUnit> delay, TargetThread targetThread) <T> void
TaskProvider.schedule
(Callable<T> action, Consumer<T> onSuccess, Runnable onFailure, UnitNumber<TimeUnit> delay, TargetThread targetThread)