You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I originally did not do this because I didn't want them to hold state so they could be stored as a value inside the interface{} but that isn't possible, Go is allocating it on the heap for me as interface{} can only contain a pointer.
The text was updated successfully, but these errors were encountered:
Ok I got it, we still need another goroutine to close the connection. What we should do is have the extra loop goroutines cancel the connection instead of the calling goroutine. Would simplify code big time.
I originally did not do this because I didn't want them to hold state so they could be stored as a value inside the
interface{}
but that isn't possible, Go is allocating it on the heap for me asinterface{}
can only contain a pointer.The text was updated successfully, but these errors were encountered: