Closed gamife closed 2 years ago
Expected behavior Expect a five-second delay.
Desktop (please complete the following information):
- OS: Linux version 3.10.0-957.el7.x86_64 (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) )
- Rust: rustc 1.59.0 (9d1b2106e 2022-02-23)
Friend your scene I have reproduced,
The specific behavior is as follows:
First-time immediate execution, From the second time onwards, the execution is delayed at regular intervals.
I will find time to adjust the program behavior in the near future, thanks for your feedback!
@gamife Fix at V0.11.2, I look forward to your feedback on successful use.
:)
可以实现这种这种效果吗?public void schedule(TimerTask task, long delay, long period)
:创建完成后延迟delay执行一次,随后每period执行一次.
另外好像要么执行一次(set_frequency_once)
,要么指定执行次数,有无限执行的选择不?
Describe the bug
set_frequency_once_by_seconds(5)
The function is executed immediately instead of being delayed for some timeTo Reproduce
Result
Expected behavior Expect a five-second delay.
Desktop (please complete the following information):