github.com/antlabs/timer
v0.1.4
#2840 most downloaded on Go modules
antlabs/timer
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Ships unpredictably
gaps range from 8 days to 1.8 years
Rarely documented
notes for 3 of 16 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
36 releases · first in 2020
0 releases in the last 12 months
see the full history below
Release timeline
36 releases · Jun 2020 to Dec 2024Releases
latest 36-
v0.1.5-0.20241204154000-8d57f32b78e204 Dec 2024 pre-releaseNothing published for this version
-
v0.1.415 May 2024Nothing published for this version
-
v0.1.4-0.20240515033253-c35e2416f43c15 May 2024 pre-releaseNothing published for this version
-
v0.1.316 Feb 2024Nothing published for this version
-
v0.1.3-0.20240216102548-da630ca7acfe16 Feb 2024 pre-releaseNothing published for this version
-
v0.1.216 Feb 2024Nothing published for this version
-
v0.1.102 Feb 2024Nothing published for this version
-
v0.0.13-0.20240202151017-8c8bf64880dd02 Feb 2024 pre-releaseNothing published for this version
-
v0.0.1204 Jan 2024 -
v0.0.12-0.20240104143759-f3de2a2d574204 Jan 2024 pre-releaseNothing published for this version
-
v0.0.1115 Aug 2023Nothing published for this version
-
v0.0.11-0.20230815105919-960cf9b4914415 Aug 2023 pre-releaseNothing published for this version
-
v0.0.11-0.20230724060613-8c3abcaf586924 Jul 2023 pre-releaseNothing published for this version
-
v0.0.1006 Nov 2022Nothing published for this version
-
v0.0.906 Nov 2022Nothing published for this version
-
v0.0.806 Nov 2022 -
v0.0.705 Nov 2022Release notes
Open source →自定义周期性定时器
实现时间翻倍定时的例子type curstomTest struct { count int } // 只要实现Next接口就行 func (c *curstomTest) Next(now time.Time) (rv time.Time) { rv = now.Add(time.Duration(c.count) * time.Millisecond * 10) c.count++ return } func main() { tm := timer.NewTimer(timer.WithMinHeap()) node := tm.CustomFunc(&curstomTest{count: 1}, func() { log.Printf("%v\n", time.Now()) }) tm.Run() }
-
v0.0.603 Nov 2022Nothing published for this version
-
v0.0.6-0.20210129132543-633a7de26c5129 Jan 2021 pre-releaseNothing published for this version
-
v0.0.514 Jul 2020Nothing published for this version
-
v0.0.5-0.20200714104723-16de59f52ecd14 Jul 2020 pre-releaseNothing published for this version
-
v0.0.5-0.20200618015801-ffc9f77d948918 Jun 2020 pre-releaseNothing published for this version
-
v0.0.417 Jun 2020Nothing published for this version
-
v0.0.4-0.20200617105209-958234d53d9017 Jun 2020 pre-releaseNothing published for this version
-
v0.0.315 Jun 2020Nothing published for this version
-
v0.0.215 Jun 2020Nothing published for this version
-
v0.0.111 Jun 2020Nothing published for this version
-
v0.0.0-20200611060538-448dbc43035211 Jun 2020 pre-releaseNothing published for this version
-
v0.0.0-20200611043034-6a9a97b923e711 Jun 2020 pre-releaseNothing published for this version
-
v0.0.0-20200610114612-bb9ca104022310 Jun 2020 pre-releaseNothing published for this version
-
v0.0.0-20200610113719-da46010b574410 Jun 2020 pre-releaseNothing published for this version
-
v0.0.0-20200610113526-542b95d010d010 Jun 2020 pre-releaseNothing published for this version
-
v0.0.0-20200609112503-230f1ecbe95809 Jun 2020 pre-releaseNothing published for this version
-
v0.0.0-20200609110503-bffafce6eff209 Jun 2020 pre-releaseNothing published for this version
-
v0.0.0-20200609051424-cd34c55e76ad09 Jun 2020 pre-releaseNothing published for this version
-
v0.0.0-20200608142445-9f6d12f3771a08 Jun 2020 pre-releaseNothing published for this version