56 releases (major breaking)

new 41.0.0 Apr 3, 2025
40.1.0 Mar 27, 2025
40.0.0 Jan 13, 2025
39.0.0 Sep 26, 2024
2.0.0-rc5 Jul 24, 2020

#681 in Magic Beans

Download history 22304/week @ 2024-12-17 7301/week @ 2024-12-24 14231/week @ 2024-12-31 23712/week @ 2025-01-07 36180/week @ 2025-01-14 30244/week @ 2025-01-21 26897/week @ 2025-01-28 30435/week @ 2025-02-04 37179/week @ 2025-02-11 32526/week @ 2025-02-18 7132/week @ 2025-02-25 4551/week @ 2025-03-04 6400/week @ 2025-03-11 4348/week @ 2025-03-18 4827/week @ 2025-03-25 3667/week @ 2025-04-01

20,133 downloads per month
Used in 36 crates (9 directly)

Apache-2.0

3MB
48K SLoC

Scheduler

A module for scheduling dispatches.

Overview

This module exposes capabilities for scheduling dispatches to occur at a specified block number or at a specified period. These scheduled dispatches may be named or anonymous and may be canceled.

NOTE: The scheduled calls will be dispatched with the default filter for the origin: namely frame_system::Config::BaseCallFilter for all origin except root which will get no filter. And not the filter contained in origin use to call fn schedule.

If a call is scheduled using proxy or whatever mechanism which adds filter, then those filter will not be used when dispatching the schedule call.

Interface

Dispatchable Functions

  • schedule - schedule a dispatch, which may be periodic, to occur at a specified block and with a specified priority.
  • cancel - cancel a scheduled dispatch, specified by block number and index.
  • schedule_named - augments the schedule interface with an additional Vec<u8> parameter that can be used for identification.
  • cancel_named - the named complement to the cancel function.

License: Apache 2.0

Dependencies

~20–35MB
~588K SLoC