Show the crate…

1 stable release

2.0.0 Apr 4, 2021

#32 in #tetcore

Download history 21/week @ 2024-01-07 2/week @ 2024-01-14 1/week @ 2024-02-04 5/week @ 2024-02-11 16/week @ 2024-02-18 34/week @ 2024-02-25 17/week @ 2024-03-03 25/week @ 2024-03-10 16/week @ 2024-03-17 19/week @ 2024-03-24 54/week @ 2024-03-31 4/week @ 2024-04-07

98 downloads per month
Used in 9 crates (2 directly)

Unlicense

1MB
25K 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 fabric_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 mecanism 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: Unlicense

Dependencies

~3–14MB
~145K SLoC