mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-29 11:31:50 +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.
|
* Async version of {@link #sync(Consumer)}.
|
||||||
* <p>
|
|
||||||
* Free if the element is already present in the current thread, blocking otherwise.
|
|
||||||
*
|
*
|
||||||
* @param consumer the callback to execute once the element has been safely acquired
|
* @param consumer the callback to execute once the element has been safely acquired
|
||||||
* @see #sync(Consumer)
|
* @see #sync(Consumer)
|
||||||
|
Loading…
Reference in New Issue
Block a user