)]}' { "commit": "80b9fac54d29c0b915a080a2317704753a5800ce", "tree": "e0da087f5d32beb707b05eb72c591963aa1380cb", "parents": [ "f3bd1da661afd6357b957af27c50ccdb248b7dd3" ], "author": { "name": "Gaal Yahas", "email": "gaal@google.com", "time": "Sun Aug 07 12:25:30 2022 +0000" }, "committer": { "name": "Sameer Ajmani", "email": "sameer@golang.org", "time": "Thu Oct 20 02:37:24 2022 +0000" }, "message": "x/time/rate: add rate.Sometimes, which runs a function occasionally.\n\nModeled after sync.Once; intended to provide simple throttling\nakin to the C++ log functions LOG_FIRST_N, LOG_EVERY_N, and\nLOG_EVERY_N_SEC.\n\nOriginally authored by sameer@golang.org.\n\nFixes golang/go#54237\n\nChange-Id: I7c6266cc780eb6dad30d310485de492f790dbcdb\nReviewed-on: https://go-review.googlesource.com/c/time/+/421915\nReviewed-by: Sameer Ajmani \u003csameer@golang.org\u003e\n", "tree_diff": [ { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "6ba99ddb67b11cbb899bfc31ac8ba9cc58b60fbe", "new_mode": 33188, "new_path": "rate/sometimes.go" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "6781770f6c667bb5f2ac1c99321d13d75cf5b21b", "new_mode": 33188, "new_path": "rate/sometimes_test.go" } ] }