Module phron_finality::sync::ticker

source ·

Structs§

  • This struct is used for rate limiting as an on-demand ticker. It can be used for ticking at most after max_timeout but no sooner than after min_timeout. Example usage would be to use the wait method in main select loop and try_tick whenever you would like to tick sooner in another branch of select, resetting whenever the rate limited action actually occurs.

Enums§