fn _event_cancel_step<F>(
clock: *mut ConfObject,
event: *mut EventClass,
obj: *mut ConfObject,
filter: Option<F>,
)
Expand description
All unexpired evclass events posted for obj on clock for which pred returns nonzero will be cancelled and their destructor methods (if any) called. pred will be called with the data associated with the event and the supplied match_data. If pred is null (None in Python), all evclass events for obj on clock will be cancelled.
There are separate calls for events posted at a point in time (cycle or seconds) and on a specific step.
§Arguments
clock
- The clock the event to cancel was posted onevent
- The event to cancelobj
- The object the event was posted onfilter
- An optional closure to filter events that returns nonzero if an event should be canceled or zero if it should not be canceled. If not provided, all events for classevent
will be canceled.
§Context
Cell Context