Package com.pixelmonmod.api.scheduler
Class DelayedScheduler
java.lang.Object
com.pixelmonmod.api.scheduler.DelayedScheduler
A utility class used for scheduling tasks at a specified time in the future that return a completable future
so that the user can then perform tasks once their task is complete
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DelayedScheduler
public DelayedScheduler()
-
-
Method Details
-
schedule
-
schedule
@Nonnull public static <A> CompletableFuture<A> schedule(Supplier<A> supplier, long delay, TimeUnit unit)
-