Will goroutine of a method be auto killed when there is no reference to the object

Hi Everyone,
I am new to go.
Just wondering if there is a method of object is running on another goroutine. Then the object lost all reference of it(pointer to the object). Will the goroutine be killed when the gc run.


How would the method loose the reference to its receiver?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.