Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问,使用 tw.AddCron 添加的方法可以在方法体里面动态改变下一次执行时间吗? #17

Closed
castaway33 opened this issue May 23, 2021 · 1 comment

Comments

@castaway33
Copy link

task := tw.AddCron(5 * time.Second, func(){
    ...   // 想在这里动态修改 下一次的执行之间
})
@rfyiamcool
Copy link
Owner

这个有些麻烦。😅 可以 stop后,重新实例化一个task对象。😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants