Name
cancel
Synopsis
s
.cancel(event_token
)
Removes an event from
s
’s queue of scheduled
events. event_token
must be the result of
a previous call to
s
.enter
or
s
.enterabs
, and the
event must not yet have happened; otherwise cancel
raises RuntimeError
.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.