top | item 43550287

(no title)

ahmedtd | 11 months ago

From the sync.Pool documentation:

> If the Pool holds the only reference when this happens, the item might be deallocated.

Conceptually, the pool is holding a weak pointer to the items inside it. The GC is free to clean them up if it wants to, when it gets triggered.

discuss

order

No comments yet.