Home
last modified time | relevance | path

Searched refs:set_exception (Results 1 – 25 of 55) sorted by relevance

123

/external/python/cpython3/Lib/asyncio/
D__main__.py39 future.set_exception(ex)
42 future.set_exception(ex)
53 future.set_exception(exc)
Dtasks.py168 def set_exception(self, exception): member in Task
271 super().set_exception(exc)
274 super().set_exception(exc)
777 outer.set_exception(exc)
782 outer.set_exception(exc)
812 outer.set_exception(exc)
895 outer.set_exception(exc)
925 future.set_exception(exc)
Dwindows_events.py82 def set_exception(self, exception): member in _OverlappedFuture
83 super().set_exception(exception)
156 def set_exception(self, exception): member in _BaseWaitHandleFuture
158 super().set_exception(exception)
183 def set_exception(self, exception): member in _WaitCancelFuture
184 super().set_exception(exception)
740 f.set_exception(e)
814 f.set_exception(e)
Dstreams.py186 waiter.set_exception(exc)
272 reader.set_exception(exc)
277 self._closed.set_exception(exc)
437 def set_exception(self, exc): member in StreamReader
444 waiter.set_exception(exc)
Dfutures.py263 def set_exception(self, exception): member in Future
336 concurrent.set_exception(_convert_future_exc(exception))
356 dest.set_exception(_convert_future_exc(exception))
Dselector_events.py391 fut.set_exception(exc)
429 fut.set_exception(exc)
476 fut.set_exception(exc)
521 fut.set_exception(exc)
544 fut.set_exception(exc)
576 fut.set_exception(exc)
953 self._empty_waiter.set_exception(exc)
980 self._empty_waiter.set_exception(
Dsubprocess.py84 self._stdin_closed.set_exception(exc)
96 reader.set_exception(exc)
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_futures.py71 def set_exception(self, exception): member in DuckFuture
168 fut.set_exception(Exception)
233 self.assertRaises(asyncio.InvalidStateError, f.set_exception, None)
246 self.assertRaises(asyncio.InvalidStateError, f.set_exception, None)
256 f.set_exception, StopIteration)
258 f.set_exception(exc)
264 self.assertRaises(asyncio.InvalidStateError, f.set_exception, None)
269 f.set_exception(RuntimeError)
316 f_exception.set_exception(exc)
371 f_exception.set_exception(RuntimeError())
[all …]
Dtest_streams.py221 stream.set_exception(ValueError())
390 stream.set_exception(ValueError())
545 stream.set_exception(ValueError())
554 stream.set_exception(exc)
561 stream.set_exception(ValueError())
578 stream.set_exception(RuntimeError('message'))
859 stream.set_exception(exc)
Dtest_buffered_proto.py27 self.con_lost_fut.set_exception(exc)
/external/llvm-project/libcxx/test/libcxx/thread/futures/futures.promise/
Dset_exception.pass.cpp37 EXPECT_DEATH( p.set_exception(std::exception_ptr()) ); in main()
43 EXPECT_DEATH( p.set_exception(std::exception_ptr()) ); in main()
/external/libcxx/test/libcxx/thread/futures/futures.promise/
Dset_exception.pass.cpp42 p.set_exception(std::exception_ptr()); in main()
51 p.set_exception(std::exception_ptr()); in main()
/external/llvm-project/libcxx/src/
Dfuture.cpp111 __assoc_sub_state::set_exception(exception_ptr __p) in set_exception() function in __assoc_sub_state
210 __state_->set_exception(make_exception_ptr( in ~promise()
235 promise<void>::set_exception(exception_ptr __p) in set_exception() function in promise
239 __state_->set_exception(__p); in set_exception()
/external/libcxx/src/
Dfuture.cpp112 __assoc_sub_state::set_exception(exception_ptr __p) in set_exception() function in __assoc_sub_state
211 __state_->set_exception(make_exception_ptr( in ~promise()
236 promise<void>::set_exception(exception_ptr __p) in set_exception() function in promise
240 __state_->set_exception(__p); in set_exception()
/external/libcxx/test/std/thread/futures/futures.promise/
Dset_exception.pass.cpp29 p.set_exception(std::make_exception_ptr(3)); in main()
41 p.set_exception(std::make_exception_ptr(3)); in main()
/external/llvm-project/libcxx/test/std/thread/futures/futures.promise/
Dset_exception.pass.cpp30 p.set_exception(std::make_exception_ptr(3)); in main()
42 p.set_exception(std::make_exception_ptr(3)); in main()
/external/libcxx/test/std/thread/futures/futures.shared_future/
Dget.pass.cpp35 p.set_exception(std::make_exception_ptr(3)); in func2()
50 p.set_exception(std::make_exception_ptr(3.5)); in func4()
62 p.set_exception(std::make_exception_ptr('c')); in func6()
/external/libcxx/test/std/thread/futures/futures.unique_future/
Dget.pass.cpp35 p.set_exception(std::make_exception_ptr(3)); in func2()
50 p.set_exception(std::make_exception_ptr(3.5)); in func4()
62 p.set_exception(std::make_exception_ptr('c')); in func6()
/external/llvm-project/libcxx/test/std/thread/futures/futures.unique_future/
Dget.pass.cpp35 p.set_exception(std::make_exception_ptr(3)); in func2()
50 p.set_exception(std::make_exception_ptr(3.5)); in func4()
62 p.set_exception(std::make_exception_ptr('c')); in func6()
/external/llvm-project/libcxx/test/std/thread/futures/futures.shared_future/
Dget.pass.cpp35 p.set_exception(std::make_exception_ptr(3)); in func2()
50 p.set_exception(std::make_exception_ptr(3.5)); in func4()
62 p.set_exception(std::make_exception_ptr('c')); in func6()
/external/llvm-project/libcxx/include/
Dfuture79 void set_exception(exception_ptr p);
108 void set_exception(exception_ptr p);
136 void set_exception(exception_ptr p);
575 void set_exception(exception_ptr __p);
871 this->set_exception(current_exception());
913 this->set_exception(current_exception());
954 this->set_exception(current_exception());
1004 this->set_exception(current_exception());
1308 void set_exception(exception_ptr __p);
1341 __state_->set_exception(make_exception_ptr(
[all …]
/external/python/cpython3/Lib/concurrent/futures/
Dthread.py54 self.future.set_exception(exc)
208 work_item.future.set_exception(BrokenThreadPool(self._broken))
/external/libcxx/include/
Dfuture80 void set_exception(exception_ptr p);
109 void set_exception(exception_ptr p);
137 void set_exception(exception_ptr p);
578 void set_exception(exception_ptr __p);
896 this->set_exception(current_exception());
944 this->set_exception(current_exception());
991 this->set_exception(current_exception());
1047 this->set_exception(current_exception());
1411 void set_exception(exception_ptr __p);
1446 __state_->set_exception(make_exception_ptr(
[all …]
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/
D_metadata_code_details_test.py157 def set_exception(self): member in _Servicer
519 self._servicer.set_exception()
541 self._servicer.set_exception()
565 self._servicer.set_exception()
589 self._servicer.set_exception()
/external/python/cpython3/Doc/library/
Dasyncio-future.rst101 :meth:`set_exception` method, this method raises the exception.
116 .. method:: set_exception(exception)
129 :meth:`set_exception` calls.

123