mirror of
https://code.chipmunk.land/Parker2991/NitoriBot/
synced 2026-12-05 08:35:39 -05:00
refactor: genericist (get it..? because geneticist?)
This commit is contained in:
@@ -4,8 +4,8 @@ import java.util.concurrent.CompletableFuture;
|
||||
import java.util.concurrent.Executor;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
public class SleepUtil {
|
||||
public static CompletableFuture sleep (long ms) {
|
||||
public final class SleepUtil {
|
||||
public static CompletableFuture<Void> sleep (long ms) {
|
||||
final Executor executor = CompletableFuture.delayedExecutor(
|
||||
ms,
|
||||
TimeUnit.MILLISECONDS
|
||||
|
||||
Reference in New Issue
Block a user