BinChengZhao / delay-timer

Time-manager of delayed tasks. Like crontab, but synchronous asynchronous tasks are possible scheduling, and dynamic add/cancel/remove is supported.
Apache License 2.0
309 stars 23 forks source link

Version 0.7.0 #16

Closed BinChengZhao closed 3 years ago

BinChengZhao commented 3 years ago

v0.7.0 New features:

1. Fix the bugs before V0.6.1, When receive a timeout event from the `sweeper`, it is possible that the task has been completed.
So can't just call cancel.

  Two options fix it.
    1. `sweeper` Remove the recycling unit when the task is finished or cancelled.(Because rust's `BinaryHeap` does not support removing specific elements, this scheme is not used.)

    2. The public event is sent only after the internal event has been processed and succeeded. (Adopted.)

2. Adjust api names (runnable -> runnable, maximun -> maximum).