Curious if the new runtime.Cleanup() would allow auto sync.Pool.Put() for a 
variable.  I'm not sure from the documentation if this would work or would 
cause some type of issue (the variable was on its way to collection and 
then gets put in a pool.  I assume it would stop collection?).  The 
guarantees for running it seem to be better than Finalizer for this kind of 
thing (its working for file closures, so I'm guessing this will eventually 
happen), but still not sure how much better.

Thanks.




-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/a5239a78-5a10-4788-b0ab-94947aca0004n%40googlegroups.com.

Reply via email to