Home
last modified time | relevance | path

Searched refs:CancelledError (Results 1 – 25 of 43) sorted by relevance

12

/third_party/skia/third_party/externals/abseil-cpp/absl/status/
Dstatusor_test.cc374 absl::StatusOr<int> thing(absl::CancelledError()); in TEST()
375 EXPECT_DEATH_OR_THROW(thing.value(), absl::CancelledError()); in TEST()
389 absl::StatusOr<int*> thing(absl::CancelledError()); in TEST()
390 EXPECT_DEATH_OR_THROW(thing.value(), absl::CancelledError()); in TEST()
394 const absl::StatusOr<int*> thing(absl::CancelledError()); in TEST()
395 EXPECT_DEATH_OR_THROW(thing.value(), absl::CancelledError()); in TEST()
444 const absl::Status kError = absl::CancelledError("message"); in TEST()
450 absl::StatusOr<int> thing(absl::CancelledError()); in TEST()
525 absl::StatusOr<int> original(absl::CancelledError()); in TEST()
548 absl::StatusOr<int> original(absl::CancelledError()); in TEST()
[all …]
Dstatus.h597 friend Status CancelledError();
728 Status CancelledError(absl::string_view message);
876 inline Status CancelledError() { return Status(absl::StatusCode::kCancelled); } in CancelledError() function
/third_party/python/Lib/test/test_asyncio/
Dtest_tasks.py133 with self.assertRaises(asyncio.CancelledError):
144 with self.assertRaises(asyncio.CancelledError):
411 self.assertRaises(asyncio.CancelledError,
645 with self.assertRaises(asyncio.CancelledError):
676 with self.assertRaises(asyncio.CancelledError) as cm:
683 (asyncio.CancelledError, expected_args, 2))
710 with self.assertRaises(asyncio.CancelledError) as cm:
717 (asyncio.CancelledError, expected_args, 2))
734 with self.assertRaises(asyncio.CancelledError) as cm:
741 (asyncio.CancelledError, ('my message',), 2))
[all …]
Dtest_server.py56 with self.assertRaises(asyncio.CancelledError):
109 with self.assertRaises(asyncio.CancelledError):
Dtest_runners.py127 except asyncio.CancelledError:
165 except asyncio.CancelledError:
Dtest_queues.py367 except asyncio.CancelledError:
398 except asyncio.CancelledError:
428 except asyncio.CancelledError:
547 with self.assertRaises(asyncio.CancelledError):
575 with self.assertRaises(asyncio.CancelledError):
Dtest_asyncio_waitfor.py26 except asyncio.CancelledError:
Dtest_locks.py150 with self.assertRaises(asyncio.CancelledError):
231 with self.assertRaises(asyncio.CancelledError):
357 with self.assertRaises(asyncio.CancelledError):
471 with self.assertRaises(asyncio.CancelledError):
495 except asyncio.CancelledError:
881 with self.assertRaises(asyncio.CancelledError):
Dtest_windows_events.py157 with self.assertRaises(asyncio.CancelledError):
203 with self.assertRaises(asyncio.CancelledError):
Dtest_subprocess.py415 except asyncio.CancelledError:
436 except asyncio.CancelledError:
454 except asyncio.CancelledError:
Dtest_futures.py227 with self.assertRaises(asyncio.CancelledError):
238 with self.assertRaises(asyncio.CancelledError):
247 self.assertRaises(asyncio.CancelledError, f.result)
248 self.assertRaises(asyncio.CancelledError, f.exception)
/third_party/python/Lib/asyncio/
Dfutures.py136 exc = exceptions.CancelledError()
138 exc = exceptions.CancelledError(self._cancel_message)
317 if exc_class is concurrent.futures.CancelledError:
318 return exceptions.CancelledError(*exc.args)
Dtasks.py220 if not isinstance(exc, exceptions.CancelledError):
242 except exceptions.CancelledError as exc:
419 except exceptions.CancelledError as exc:
433 except exceptions.CancelledError:
457 except exceptions.CancelledError as exc:
751 res = exceptions.CancelledError(
Dlocks.py116 except exceptions.CancelledError:
280 except exceptions.CancelledError:
284 raise exceptions.CancelledError
Dexceptions.py9 class CancelledError(BaseException): class
Dproactor_events.py312 except exceptions.CancelledError:
572 except exceptions.CancelledError:
780 except exceptions.CancelledError:
848 except exceptions.CancelledError:
/third_party/python/Lib/concurrent/futures/
D_base.py49 class CancelledError(Error): class
437 raise CancelledError()
444 raise CancelledError()
473 raise CancelledError()
480 raise CancelledError()
D__init__.py11 CancelledError,
/third_party/python/Doc/library/
Dasyncio-exceptions.rst23 .. exception:: CancelledError
33 :exc:`CancelledError` is now a subclass of :class:`BaseException`.
Dasyncio-task.rst366 treated as if it raised :exc:`CancelledError` -- the ``gather()``
462 still raises a :exc:`CancelledError`.
473 except CancelledError:
842 will cause the Task to throw a :exc:`CancelledError` exception into
848 suppress the :exc:`CancelledError` exception and was actually
876 This arranges for a :exc:`CancelledError` exception to be thrown
881 ... ``except CancelledError`` ... :keyword:`finally` block.
901 except asyncio.CancelledError:
917 except asyncio.CancelledError:
935 :exc:`CancelledError` exception thrown into it.
[all …]
Dasyncio-api-index.rst211 * - :exc:`asyncio.CancelledError`
217 * :ref:`Handling CancelledError to run code on cancellation request
/third_party/python/Lib/unittest/test/
Dtest_async_case.py267 raise asyncio.CancelledError()
289 except asyncio.CancelledError:
/third_party/python/Lib/unittest/
Dasync_case.py106 except (BaseException, asyncio.CancelledError) as ex:
/third_party/python/Lib/test/
Dtest_asyncgen.py1255 with self.assertRaises(asyncio.CancelledError):
1348 except asyncio.CancelledError:
1354 with self.assertRaises(asyncio.CancelledError):
1455 with self.assertRaises(asyncio.CancelledError):
1457 with self.assertRaises(asyncio.CancelledError):
Dtest_concurrent_futures.py1446 self.assertRaises(futures.CancelledError,
1448 self.assertRaises(futures.CancelledError,
1478 self.assertRaises(futures.CancelledError,
1487 self.assertRaises(futures.CancelledError,
1489 self.assertRaises(futures.CancelledError,

12