Closed trevorprater closed 4 years ago
The name KeepConnectionAlive
seems misleading, as no connection is being kept alive. Looking at the implementation, a better name might be CleanEvery
.
But I'm not sure it's needed, as the function itself is pretty trivial. What's wrong with having the time.Tick
loop in the caller?
Closing for being inactive and very old. Please let me know if this is still something you're interested in :v:
cleaner.KeepConnectionAlive is a useful helper function, particularly if you run it in a goroutine upon instantiation of a connection.