mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-02 17:00:41 +01:00
Rename AcquirableCollection acquire methods name
This commit is contained in:
parent
c3f1b9159c
commit
9ca09a32bf
@ -16,7 +16,7 @@ public class AcquirableCollection<E> implements Collection<Acquirable<E>> {
|
||||
this.acquirableCollection = acquirableCollection;
|
||||
}
|
||||
|
||||
public void forEachSync(@NotNull Consumer<E> consumer) {
|
||||
public void acquireSync(@NotNull Consumer<E> consumer) {
|
||||
final Thread currentThread = Thread.currentThread();
|
||||
var threadEntitiesMap = retrieveOptionalThreadMap(acquirableCollection, currentThread, consumer);
|
||||
|
||||
@ -35,8 +35,8 @@ public class AcquirableCollection<E> implements Collection<Acquirable<E>> {
|
||||
}
|
||||
}
|
||||
|
||||
public void forEachAsync(@NotNull Consumer<E> consumer) {
|
||||
AsyncUtils.runAsync(() -> forEachSync(consumer));
|
||||
public void acquireAsync(@NotNull Consumer<E> consumer) {
|
||||
AsyncUtils.runAsync(() -> acquireSync(consumer));
|
||||
}
|
||||
|
||||
public @NotNull Stream<E> unwrap() {
|
||||
|
Loading…
Reference in New Issue
Block a user