We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df3e7ac commit 3c64084Copy full SHA for 3c64084
src/main/java/meteordevelopment/meteorclient/utils/misc/Pool.java
@@ -14,8 +14,8 @@ public final class Pool<T> {
14
private final Queue<T> items = new ArrayDeque<>();
15
private final Supplier<T> producer;
16
17
- public Pool(Supplier<T> producer) {
18
- this.producer = producer;
+ public Pool(Producer<T> producer) {
+ this.producer = producer::create;
19
}
20
21
public synchronized T get() {
0 commit comments