mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-02 17:00:41 +01:00
Acquirable#async is not blocking
This commit is contained in:
parent
b8b62c4ff7
commit
8ba99bb931
@ -120,9 +120,7 @@ public interface Acquirable<T> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Locks the acquirable element, execute {@code consumer} asynchronously and unlock the thread.
|
||||
* <p>
|
||||
* Free if the element is already present in the current thread, blocking otherwise.
|
||||
* Async version of {@link #sync(Consumer)}.
|
||||
*
|
||||
* @param consumer the callback to execute once the element has been safely acquired
|
||||
* @see #sync(Consumer)
|
||||
|
Loading…
Reference in New Issue
Block a user