Skip to content

Commit 454e62c

Browse files
committed
deprecate async
1 parent 9dfbdb5 commit 454e62c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/falsepattern/lib/util/AsyncUtil.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.falsepattern.lib.util;
22

3-
import com.falsepattern.lib.StableAPI;
43
import com.falsepattern.lib.internal.Tags;
54

65
import java.util.concurrent.ExecutorService;
@@ -10,8 +9,10 @@
109
* Asynchronous utilities. Notice: you should not abuse this for anything performance-sensitive.
1110
* The asynchronous worker exists primarily to run code independently of the main thread during loading.
1211
* You must make sure to solve any potential deadlocks yourself!
12+
*
13+
* //Deprecated since 0.9.0, removal in 0.10+: Use java-provided async tools instead. CompletableFuture is a nice one.
1314
*/
14-
@StableAPI(since = "0.8.0")
15+
@Deprecated
1516
public class AsyncUtil {
1617
public static final ExecutorService asyncWorker = Executors.newSingleThreadExecutor((runnable) -> {
1718
Thread thread = new Thread(runnable);

0 commit comments

Comments
 (0)