MCPcopy Create free account
hub / github.com/Hypnotic-Development/Hypnotic-Client / Pool

Method Pool

src/main/java/dev/hypnotic/utils/Pool.java:26–28  ·  view source on GitHub ↗
(Producer<T> producer)

Source from the content-addressed store, hash-verified

24 private final Producer<T> producer;
25
26 public Pool(Producer<T> producer) {
27 this.producer = producer;
28 }
29
30 public synchronized T get() {
31 if (items.size() > 0) return items.poll();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected