Lines Matching defs:cancel
188 def cancel(self, msg=None):
189 """Request that this task cancel itself.
196 Unlike Future.cancel, this does not guarantee that the
205 terminates with a CancelledError exception (even if cancel()
220 if self._fut_waiter.cancel(msg=msg):
223 # to cancel it again later.
233 This count is incremented when .cancel() is called
241 This should be called by the party that called `cancel()` on the task
274 super().cancel(msg=self._cancel_message)
280 super().cancel() # I.e., Future.cancel(self).
308 if self._fut_waiter.cancel(
494 timeout_handle.cancel()
517 timeout_handle.cancel()
528 timeout_handle.cancel()
549 fut.cancel()
598 timeout_handle.cancel()
641 h.cancel()
692 This overrides cancel() to cancel all the children and act more
693 like Task.cancel(), which doesn't immediately mark itself as
703 def cancel(self, msg=None):
708 if child.cancel(msg=msg):
742 has been marked done won't cancel any submitted awaitables.
744 exception to the caller, therefore, calling ``gather.cancel()``
746 gather won't cancel any other awaitables.
858 this will still cancel shield().
889 outer.cancel()