muesli / cache2go

Concurrency-safe Go caching library with expiration capabilities and access counters

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

May I ask why using the go rountine in the time.AfterFunc, the param func should be run by an rountine

leoxu1719 opened this issue · comments

go table.expirationCheck()

yes, it run by an routine, so it will not block the main gorotine. another goroutine will be time.AfterFunc to run when this expirationCheck func done. you can understand one cacheTable have only one expireationcheck func gorouting

I'm sorry but I don't fully understand the question. I hope @leezhu's response was helpful.