Acquirable#async is not blocking

This commit is contained in:
TheMode 2021-04-25 23:28:41 +02:00
parent b8b62c4ff7
commit 8ba99bb931

View File

@ -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)