From 454e62c34839ef9158184feb1a546275b6e03387 Mon Sep 17 00:00:00 2001 From: FalsePattern <30945458+FalsePattern@users.noreply.github.com> Date: Sun, 19 Jun 2022 22:42:34 +0200 Subject: [PATCH] deprecate async --- src/main/java/com/falsepattern/lib/util/AsyncUtil.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/falsepattern/lib/util/AsyncUtil.java b/src/main/java/com/falsepattern/lib/util/AsyncUtil.java index 726b68f..9e8dea5 100644 --- a/src/main/java/com/falsepattern/lib/util/AsyncUtil.java +++ b/src/main/java/com/falsepattern/lib/util/AsyncUtil.java @@ -1,6 +1,5 @@ package com.falsepattern.lib.util; -import com.falsepattern.lib.StableAPI; import com.falsepattern.lib.internal.Tags; import java.util.concurrent.ExecutorService; @@ -10,8 +9,10 @@ import java.util.concurrent.Executors; * Asynchronous utilities. Notice: you should not abuse this for anything performance-sensitive. * The asynchronous worker exists primarily to run code independently of the main thread during loading. * You must make sure to solve any potential deadlocks yourself! + * + * //Deprecated since 0.9.0, removal in 0.10+: Use java-provided async tools instead. CompletableFuture is a nice one. */ -@StableAPI(since = "0.8.0") +@Deprecated public class AsyncUtil { public static final ExecutorService asyncWorker = Executors.newSingleThreadExecutor((runnable) -> { Thread thread = new Thread(runnable);