Lines Matching refs:cancelled
127 """Create the CancelledError to raise if the Future is cancelled.
149 If the future is already done or cancelled, return False. Otherwise,
150 change the future's state to cancelled, schedule the callbacks and
175 def cancelled(self):
176 """Return True if the future was cancelled."""
185 future was cancelled.
192 If the future has been cancelled, raises CancelledError. If the
210 the future is done. If the future has been cancelled, raises
312 """Helper setting the result only if the future was not cancelled."""
313 if fut.cancelled():
333 if source.cancelled():
351 if dest.cancelled():
354 if source.cancelled():
369 If destination is cancelled, source gets cancelled too.
388 if destination.cancelled():
395 if (destination.cancelled() and