mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-11 09:07:29 +00:00
add async library documentation
This commit is contained in:
2 files changed
+6
No files matched your search
@@ -7,6 +7,11 @@ import lombok.Getter;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
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!
|
||||
*/
|
||||
@StableAPI(since = "0.8.0")
|
||||
public class Async {
|
||||
public static final ExecutorService asyncWorker = Executors.newSingleThreadExecutor((runnable) -> {
|
||||
|
||||
Reference in new issue
Block a user