Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: