The current implementation makes it possible to easily cancel a scheduled event using its SchedulerKey, provided that this event is scheduled for a future time. When the event is scheduled for the current time but was not processed yet, however, the user must resort to cumbersome workarounds to discard the event when it is processed (see the epoch-based workaround in the current espresso machine example).
An implementation that allows the event to be cancelled at any time before it is processed would bring a sizable quality-of-life improvement.
The current implementation makes it possible to easily cancel a scheduled event using its
SchedulerKey
, provided that this event is scheduled for a future time. When the event is scheduled for the current time but was not processed yet, however, the user must resort to cumbersome workarounds to discard the event when it is processed (see the epoch-based workaround in the current espresso machine example).An implementation that allows the event to be cancelled at any time before it is processed would bring a sizable quality-of-life improvement.