diff --git a/src/main/java/net/minestom/server/utils/async/AsyncUtils.java b/src/main/java/net/minestom/server/utils/async/AsyncUtils.java index d280d467f..e2c1cd4ba 100644 --- a/src/main/java/net/minestom/server/utils/async/AsyncUtils.java +++ b/src/main/java/net/minestom/server/utils/async/AsyncUtils.java @@ -7,8 +7,8 @@ import java.util.concurrent.CompletableFuture; public final class AsyncUtils { - public static void runAsync(@NotNull Runnable runnable) { - CompletableFuture.runAsync(() -> { + public static @NotNull CompletableFuture runAsync(@NotNull Runnable runnable) { + return CompletableFuture.runAsync(() -> { try { runnable.run(); } catch (Exception e) {