-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Is your feature request related to a problem? Please describe.
I'd like to be able to check if a task with a specific ID is already being handled by DelayTimer, so I can avoid overwriting accidentally by inserting a new task with the same ID
Describe the solution you'd like
impl DelayTimer {
pub fn has_task(&self, id: u64) -> bool {
todo!()
}
}Describe alternatives you've considered
A workaround I considered was trying to remove a task then re-adding it if it existed, however DelayTimer::remove_task doesn't return the task being removed
Additional context
For use in my upcoming project
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels