Skip to content
Snippets Groups Projects
Commit 9eb6da5c authored by Dan Forbes's avatar Dan Forbes Committed by GitHub
Browse files

Basic documentation for Scheduler pallet (#6338)

Closes #5912
parent 5b324264
No related merge requests found
...@@ -16,31 +16,29 @@ ...@@ -16,31 +16,29 @@
// limitations under the License. // limitations under the License.
//! # Scheduler //! # Scheduler
//! A module for scheduling dispatches.
//! //!
//! \# Scheduler //! - [`scheduler::Trait`](./trait.Trait.html)
//! - [`Call`](./enum.Call.html)
//! - [`Module`](./struct.Module.html)
//! //!
//! - \[`scheduler::Trait`](./trait.Trait.html) //! ## Overview
//! - \[`Call`](./enum.Call.html)
//! - \[`Module`](./struct.Module.html)
//! //!
//! \## 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.
//! //!
//! // Short description of pallet's purpose. //! ## Interface
//! // Links to Traits that should be implemented.
//! // What this pallet is for.
//! // What functionality the pallet provides.
//! // When to use the pallet (use case examples).
//! // How it is used.
//! // Inputs it uses and the source of each input.
//! // Outputs it produces.
//! //!
//! \## Terminology //! ### Dispatchable Functions
//! //!
//! \## Goals //! * `schedule` - schedule a dispatch, which may be periodic, to occur at a
//! //! specified block and with a specified priority.
//! \## Interface //! * `cancel` - cancel a scheduled dispatch, specified by block number and
//! //! index.
//! \### Dispatchable Functions //! * `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.
// Ensure we're `no_std` when compiling for Wasm. // Ensure we're `no_std` when compiling for Wasm.
#![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), no_std)]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment