Struct delay_timer::entity::DelayTimer [−][src]
pub struct DelayTimer { /* fields omitted */ }Expand description
DelayTimer is an abstraction layer that helps users solve execution cycle synchronous/asynchronous tasks.
Implementations
New a DelayTimer.
Add a task in timer_core by event-channel.
Add a task in timer_core by event-channel. But it will return a handle that can constantly take out new instances of the task.
Update a task in timer_core by event-channel.
Remove a task in timer_core by event-channel.
Advance a task in timer_core by event-channel.
Cancel a task in timer_core by event-channel.
Cancel is for instances derived from the task running up.
Stop DelayTimer, running tasks are not affected.
Set internal id-generator for machine_id and node_id.
Add a new api in the future to support passing a custom id generator.
The id-generator is mainly used for binding unique record ids to internal events, for user collection, and for tracking task dynamics.
This is supported on crate feature status-report only.
status-report only.Take StatusReporter from DelayTimer, through which you can get public events.
This is supported on crate feature status-report only.
status-report only.Access to public events through DelayTimer.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for DelayTimerimpl Send for DelayTimerimpl Sync for DelayTimerimpl Unpin for DelayTimerimpl !UnwindSafe for DelayTimerBlanket Implementations
Mutably borrows from an owned value. Read more