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

怎么设置min_wait和max_wait来控制每个用户执行两个任务之间的等待时间? #38

Closed
spiderpoison opened this issue Jul 13, 2018 · 3 comments

Comments

@spiderpoison
Copy link

No description provided.

@myzhan
Copy link
Owner

myzhan commented Jul 13, 2018

目前还不支持这两个参数

@spiderpoison
Copy link
Author

那任务的执行频率是什么样的?

@myzhan
Copy link
Owner

myzhan commented Jul 13, 2018

多任务的话,按照 weight 来分 goroutine,每个 goroutine 里面循环跑 Fn 对应的函数。

如果你需要间隔时间,在 Fn 对应的函数里面自行 sleep 一下。

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