Home
Sign Up
Sign In
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member
Sign In
The Go Programming Language
›
http://golang.org/
›
Go Playground
Go Projects
›
Revel Web Framework
Advertisement
V2EX
›
Go 编程语言
go 有定时任务么?
nomoon
·
May 25, 2017
· 2762 views
This topic created in 3261 days ago, the information mentioned may be changed or developed.
遇到的问题:现在在用 ticker,但是碰到应用起来的时候不同步,于是每个 instance 里的 interval 不同步,所以想问说 golang 里面有没有可以标明下一次运行时间的 ticker
ticker
Golang
interval
Instance
3 replies
•
2017-05-25 12:30:57 +08:00
1
zdt3476
May 25, 2017
1
github.com/robfig/cron
这个库不知道是否满足你的需求
2
nomoon
OP
May 25, 2017
@
zdt3476
谢谢,我去看下
3
lusizeng
May 25, 2017
https://github.com/kakuilan/ktimer,目前功能比较简单,就是定时访问
URL 接口的
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
938 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 36ms ·
UTC 20:26
·
PVG 04:26
·
LAX 13:26
·
JFK 16:26
♥ Do have faith in what you're doing.
❯