Type Alias jormungandr::blockchain::process::GetNextBlockScheduler
source · type GetNextBlockScheduler = FireForgetScheduler<HeaderHash, NodeId, ()>;
Aliased Type§
struct GetNextBlockScheduler {
sender: Sender<Command<Hash, NodeId, ()>>,
}
Fields§
§sender: Sender<Command<Hash, NodeId, ()>>
Implementations§
source§impl<TID, WID, Data> FireForgetScheduler<TID, WID, Data>
impl<TID, WID, Data> FireForgetScheduler<TID, WID, Data>
sourcepub fn schedule(&mut self, tid: TID, wid: WID, data: Data) -> Result<(), Error>
pub fn schedule(&mut self, tid: TID, wid: WID, data: Data) -> Result<(), Error>
Schedules a task to be launched. If task with same TID and WID is already queued, it has no effect.
sourcepub fn declare_completed(&mut self, task: TID) -> Result<(), Error>
pub fn declare_completed(&mut self, task: TID) -> Result<(), Error>
Declares all tasks with given TID completed. Queued instances will be canceled and running ones will be considered finished.