Show the crate…

1 stable release

2.0.0 Apr 4, 2021

#80 in #tetcoin

Download history 13/week @ 2024-04-14 16/week @ 2024-04-21 14/week @ 2024-04-28 14/week @ 2024-05-05 17/week @ 2024-05-12 20/week @ 2024-05-19 14/week @ 2024-05-26 15/week @ 2024-06-02 15/week @ 2024-06-09 17/week @ 2024-06-16 16/week @ 2024-06-23 3/week @ 2024-06-30 8/week @ 2024-07-07 22/week @ 2024-07-14 17/week @ 2024-07-21 18/week @ 2024-07-28

65 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–13MB
~148K SLoC