From d362a6e2e9d186a05fbf605947b7dafa1b5dfa07 Mon Sep 17 00:00:00 2001 From: Luck Date: Fri, 27 Jan 2017 20:19:56 +0000 Subject: [PATCH] Updated Developer API (markdown) --- Developer-API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Developer-API.md b/Developer-API.md index dd05a4b..5da98ec 100644 --- a/Developer-API.md +++ b/Developer-API.md @@ -76,7 +76,7 @@ if (provider.isPresent()) { ### A warning about thread safety All LuckPerms internals are thread-safe, including the API. You can call API methods from async threads without incurring issues. -However, please be aware that some operations, (especially in the Storage class) are blocking. [CompletableFuture](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html)s are used in these situations to prevent accidental issues, where the main server thread waits for I/O to execute. Care should be taken to specify the correct executor when adding callbacks to these futures. +However, please be aware that some operations, (especially in the Storage class) are blocking. [CompletableFuture](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html)s are used in these situations to prevent accidental issues whereby through poor handling, the main server thread waits for I/O to execute. Care should be taken to specify the correct executor when adding callbacks to these futures. ### I want to depend on LuckPerms On Bukkit/Bungee, you need to add the following to your plugins `plugin.yml`.