V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
nomoon
V2EX  ›  Go 编程语言

go 有定时任务么?

  •  
  •   nomoon · 2017-05-25 11:47:31 +08:00 · 1883 次点击
    这是一个创建于 2490 天前的主题,其中的信息可能已经有所发展或是发生改变。
    遇到的问题:现在在用 ticker,但是碰到应用起来的时候不同步,于是每个 instance 里的 interval 不同步,所以想问说 golang 里面有没有可以标明下一次运行时间的 ticker
    3 条回复    2017-05-25 12:30:57 +08:00
    zdt3476
        1
    zdt3476  
       2017-05-25 11:52:59 +08:00   ❤️ 1
    github.com/robfig/cron 这个库不知道是否满足你的需求
    nomoon
        2
    nomoon  
    OP
       2017-05-25 12:03:10 +08:00
    @zdt3476 谢谢,我去看下
    lusizeng
        3
    lusizeng  
       2017-05-25 12:30:57 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5397 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 08:38 · PVG 16:38 · LAX 01:38 · JFK 04:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.