Results of 1 - 10 of about 34 for awaited (0.013 sec.)
- Call graph introspection — Python 3.14.8 ドキュメント 13325
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Call graph introspection テーマ 自動 ライト ダーク | Call graph introsp
...e left. If limit is omitted or None , all entries are present. If limit is 0 , the call stack is not printed at all, only "awaited by" information is printed. If file is omitted or None , the function will print to sys.stdout . Example: The following Py...は以下を出力します: * Task ( name = 'test' , id = 0x1039f0fe0 ) + Call stack : | File 't2.py' , line 4 , in async test () + Awaited by : * Task ( name = 'Task-1' , id = 0x103a5e060 ) + Call stack : | File 'taskgroups.py' , line 107 , in async TaskGroup ....d number of frames from top of the stack. Returns a FutureCallGraph data class object: FutureCallGraph(future, call_stack, awaited_by) Where future is a reference to a Future or a Task (or their subclasses.) call_stack is a tuple of FrameCallGraphEntry... - https://man.mtool.work/python/3.14/library/asyncio-graph.html
- Call graph introspection — Python 3.14.8 ドキュメント 13325
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Call graph introspection テーマ 自動 ライト ダーク | Call graph introsp
...e left. If limit is omitted or None , all entries are present. If limit is 0 , the call stack is not printed at all, only "awaited by" information is printed. If file is omitted or None , the function will print to sys.stdout . Example: The following Py...は以下を出力します: * Task ( name = 'test' , id = 0x1039f0fe0 ) + Call stack : | File 't2.py' , line 4 , in async test () + Awaited by : * Task ( name = 'Task-1' , id = 0x103a5e060 ) + Call stack : | File 'taskgroups.py' , line 107 , in async TaskGroup ....d number of frames from top of the stack. Returns a FutureCallGraph data class object: FutureCallGraph(future, call_stack, awaited_by) Where future is a reference to a Future or a Task (or their subclasses.) call_stack is a tuple of FrameCallGraphEntry... - https://man.mtool.work/python/3.14/library/asyncio-graph.html
- unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 10768
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ
...rue The result of mock() is an async function which will have the outcome of side_effect or return_value after it has been awaited: if side_effect is a function, the async function will return the result of that function, if side_effect is an exception,...ame='mock.sync_foo' id='...'> >>> mock . async_foo <AsyncMock name='mock.async_foo' id='...'> Added in version 3.8. assert_awaited ( ) ¶ Assert that the mock was awaited at least once. Note that this is separate from the object having been called, the a...ain ( coroutine_mock ): ... await coroutine_mock ... >>> coroutine_mock = mock () >>> mock . called True >>> mock . assert_awaited () Traceback (most recent call last): ... AssertionError : Expected mock to have been awaited. >>> asyncio . run ( main (... - https://man.mtool.work/python/3.14/library/unittest.mock.html
- unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 10768
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ
...rue The result of mock() is an async function which will have the outcome of side_effect or return_value after it has been awaited: if side_effect is a function, the async function will return the result of that function, if side_effect is an exception,...ame='mock.sync_foo' id='...'> >>> mock . async_foo <AsyncMock name='mock.async_foo' id='...'> Added in version 3.8. assert_awaited ( ) ¶ Assert that the mock was awaited at least once. Note that this is separate from the object having been called, the a...ain ( coroutine_mock ): ... await coroutine_mock ... >>> coroutine_mock = mock () >>> mock . called True >>> mock . assert_awaited () Traceback (most recent call last): ... AssertionError : Expected mock to have been awaited. >>> asyncio . run ( main (... - https://man.mtool.work/python/3.14/library/unittest.mock.html
- A Conceptual Overview of asyncio — Python 3.14.8 ドキュメント 8484
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » A Conceptual Overview of asyncio テーマ 自動 ライト ダーク | A Conceptual Overview of asyncio ¶ This HOWTO article seeks to help you build a sturd
...f this article, you'll be able to comfortably answer these questions: What's happening behind the scenes when an object is awaited? How does asyncio differentiate between a task which doesn't need CPU time (such as a network request or file read) as opp...two different ways: await task await coroutine In a crucial way, the behavior of await depends on the type of object being awaited. Awaiting a task will cede control from the current task or coroutine to the event loop. In the process of relinquishing c...add its various callbacks to the event loop, in this case, a call to resume plant_a_tree() . Generally speaking, when the awaited task finishes ( dig_the_hole_task ), the original task or coroutine ( plant_a_tree() ) is added back to the event loop's t... - https://man.mtool.work/python/3.14/howto/a-conceptual-overview-of-asyncio.html
- A Conceptual Overview of asyncio — Python 3.14.8 ドキュメント 8484
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » A Conceptual Overview of asyncio テーマ 自動 ライト ダーク | A Conceptual Overview of asyncio ¶ This HOWTO article seeks to help you build a sturd
...f this article, you'll be able to comfortably answer these questions: What's happening behind the scenes when an object is awaited? How does asyncio differentiate between a task which doesn't need CPU time (such as a network request or file read) as opp...two different ways: await task await coroutine In a crucial way, the behavior of await depends on the type of object being awaited. Awaiting a task will cede control from the current task or coroutine to the event loop. In the process of relinquishing c...add its various callbacks to the event loop, in this case, a call to resume plant_a_tree() . Generally speaking, when the awaited task finishes ( dig_the_hole_task ), the original task or coroutine ( plant_a_tree() ) is added back to the event loop's t... - https://man.mtool.work/python/3.14/howto/a-conceptual-overview-of-asyncio.html
- 索引 — Python 3.14.8 ドキュメント 8228
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – A A (re モジュール) a2b_base64() (binascii モジュール) a2b_hex() (binascii モジュール) a2b_qp() (binascii モジュール) a2b_uu() (binasc
...のクラス) assert_any_await() (unittest.mock.AsyncMock のメソッド) assert_any_call() (unittest.mock.Mock のメソッド) assert_awaited() (unittest.mock.AsyncMock のメソッド) assert_awaited_once() (unittest.mock.AsyncMock のメソッド) assert_awaited_once_with...() (unittest.mock.AsyncMock のメソッド) assert_awaited_with() (unittest.mock.AsyncMock のメソッド) assert_called() (unittest.mock.Mock のメソッド) assert_called_once() (unittest...ock.AsyncMock のメソッド) assert_has_calls() (unittest.mock.Mock のメソッド) assert_never() (typing モジュール) assert_not_awaited() (unittest.mock.AsyncMock のメソッド) assert_not_called() (unittest.mock.Mock のメソッド) assert_python_failure() (test.s... - https://man.mtool.work/python/3.14/genindex-A.html
- 索引 — Python 3.14.8 ドキュメント 8228
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – A A (re モジュール) a2b_base64() (binascii モジュール) a2b_hex() (binascii モジュール) a2b_qp() (binascii モジュール) a2b_uu() (binasc
...のクラス) assert_any_await() (unittest.mock.AsyncMock のメソッド) assert_any_call() (unittest.mock.Mock のメソッド) assert_awaited() (unittest.mock.AsyncMock のメソッド) assert_awaited_once() (unittest.mock.AsyncMock のメソッド) assert_awaited_once_with...() (unittest.mock.AsyncMock のメソッド) assert_awaited_with() (unittest.mock.AsyncMock のメソッド) assert_called() (unittest.mock.Mock のメソッド) assert_called_once() (unittest...ock.AsyncMock のメソッド) assert_has_calls() (unittest.mock.Mock のメソッド) assert_never() (typing モジュール) assert_not_awaited() (unittest.mock.AsyncMock のメソッド) assert_not_called() (unittest.mock.Mock のメソッド) assert_python_failure() (test.s... - https://man.mtool.work/python/3.14/genindex-A.html
- Future — Python 3.14.8 ドキュメント 7701
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Future テーマ 自動 ライト ダーク | Future ¶ ソースコード: Lib/asyncio/f
...await on Future objects until they either have a result or an exception set, or until they are cancelled. A Future can be awaited multiple times and the result is same. 典型的には、 Future は低水準のコールバックベースのコード (たとえば asyncio の trans...e optional string argument msg is passed as the argument to the CancelledError exception raised when a cancelled Future is awaited. バージョン 3.9 で変更: Added the msg parameter. exception ( ) ¶ この Future オブジェクトに設定された例外を返します。 例外... - https://man.mtool.work/python/3.14/library/asyncio-future.html
- Future — Python 3.14.8 ドキュメント 7701
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Future テーマ 自動 ライト ダーク | Future ¶ ソースコード: Lib/asyncio/f
...await on Future objects until they either have a result or an exception set, or until they are cancelled. A Future can be awaited multiple times and the result is same. 典型的には、 Future は低水準のコールバックベースのコード (たとえば asyncio の trans...e optional string argument msg is passed as the argument to the CancelledError exception raised when a cancelled Future is awaited. バージョン 3.9 で変更: Added the msg parameter. exception ( ) ¶ この Future オブジェクトに設定された例外を返します。 例外... - https://man.mtool.work/python/3.14/library/asyncio-future.html