per page, with , order by , clip by
Results of 1 - 10 of about 23 for TaskGroup (0.010 sec.)
Command-line introspection tools — Python 3.14.8 ドキュメント 13522
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Command-line introspection tools テーマ 自動 ライト ダーク | Command-li ... wait asyncio . sleep ( 3600 ) print ( f "? Finished: { track } " ) async def album ( name , tracks ): async with asyncio . TaskGroup () as tg : for track in tracks : tg . create_task ( play ( track ), name = track ) async def main (): print ( f "PID: { os ... . getpid () } " ) async with asyncio . TaskGroup () as tg : tg . create_task ( album ( "Sundowning" , [ "TNDNBTG" , "Levitate" ]), name = "Sundowning" , ) tg . create_task ... re in its coroutine stack execution has paused: $ python -m asyncio pstree 12345 └── (T) Task-1 └── main example.py:12 └── TaskGroup.__aexit__ Lib/asyncio/taskgroups.py:75 └── TaskGroup._aexit Lib/asyncio/taskgroups.py:124 ├── (T) Sundowning │ └── album e ...
https://man.mtool.work/python/3.14/library/asyncio-tools.html
Command-line introspection tools — Python 3.14.8 ドキュメント 13438
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Command-line introspection tools テーマ 自動 ライト ダーク | Command-li ... wait asyncio . sleep ( 3600 ) print ( f "? Finished: { track } " ) async def album ( name , tracks ): async with asyncio . TaskGroup () as tg : for track in tracks : tg . create_task ( play ( track ), name = track ) async def main (): print ( f "PID: { os ... . getpid () } " ) async with asyncio . TaskGroup () as tg : tg . create_task ( album ( "Sundowning" , [ "TNDNBTG" , "Levitate" ]), name = "Sundowning" , ) tg . create_task ... re in its coroutine stack execution has paused: $ python -m asyncio pstree 12345 └── (T) Task-1 └── main example.py:12 └── TaskGroup.__aexit__ Lib/asyncio/taskgroups.py:75 └── TaskGroup._aexit Lib/asyncio/taskgroups.py:124 ├── (T) Sundowning │ └── album e ...
https://man.mtool.work/python/3.14/library/asyncio-tools.html
What's new in Python 3.14 — Python 3.14.8 ドキュメント 9132
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's new in Python 3.14 テーマ 自動 ライト ダーク | What's new in Python 3.14 ¶ エディタ : Adam Turner と Hugo van Kemenade この記事では ... it asyncio . sleep ( 5 ) print ( f '? Finished: { track } ' ) async def play_album ( name , tracks ): async with asyncio . TaskGroup () as tg : for track in tracks : tg . create_task ( play_track ( track ), name = track ) async def main (): async with asy ... ncio . TaskGroup () as tg : tg . create_task ( play_album ( 'Sundowning' , [ 'TNDNBTG' , 'Levitate' ]), name = 'Sundowning' ) tg . create_t ... -------------------------------------------------------------------------------------------- 1935500 0x7fc930c18050 Task-1 TaskGroup._aexit -> TaskGroup.__aexit__ -> main 0x0 1935500 0x7fc930c18230 Sundowning TaskGroup._aexit -> TaskGroup.__aexit__ -> alb ...
https://man.mtool.work/python/3.14/whatsnew/3.14.html
What's new in Python 3.14 — Python 3.14.8 ドキュメント 9132
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's new in Python 3.14 テーマ 自動 ライト ダーク | What's new in Python 3.14 ¶ エディタ : Adam Turner と Hugo van Kemenade この記事では ... it asyncio . sleep ( 5 ) print ( f '? Finished: { track } ' ) async def play_album ( name , tracks ): async with asyncio . TaskGroup () as tg : for track in tracks : tg . create_task ( play_track ( track ), name = track ) async def main (): async with asy ... ncio . TaskGroup () as tg : tg . create_task ( play_album ( 'Sundowning' , [ 'TNDNBTG' , 'Levitate' ]), name = 'Sundowning' ) tg . create_t ... -------------------------------------------------------------------------------------------- 1935500 0x7fc930c18050 Task-1 TaskGroup._aexit -> TaskGroup.__aexit__ -> main 0x0 1935500 0x7fc930c18230 Sundowning TaskGroup._aexit -> TaskGroup.__aexit__ -> alb ...
https://man.mtool.work/python/3.14/whatsnew/3.14.html
Coroutines and tasks — Python 3.14.8 ドキュメント 8914
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Coroutines and tasks テーマ 自動 ライト ダーク | Coroutines and tasks ¶ ... も 1 秒早いことを示していることに注意してください: started at 17 : 14 : 32 hello world finished at 17 : 14 : 34 The asyncio.TaskGroup class provides a more modern alternative to create_task() . Using this API, the last example becomes: async def main (): a ... sync with asyncio . TaskGroup () as tg : task1 = tg . create_task ( say_after ( 1 , 'hello' )) task2 = tg . create_task ( say_after ( 2 , 'world' )) pri ... time ( ' %X ' ) } " ) The timing and output should be the same as for the previous version. Added in version 3.11: asyncio.TaskGroup . Awaitable ¶ あるオブジェクトを await 式の中で使うことができる場合、そのオブジェクトを awaitable オブジェクトと言います。 ...
https://man.mtool.work/python/3.14/library/asyncio-task.html
Coroutines and tasks — Python 3.14.8 ドキュメント 8830
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Coroutines and tasks テーマ 自動 ライト ダーク | Coroutines and tasks ¶ ... も 1 秒早いことを示していることに注意してください: started at 17 : 14 : 32 hello world finished at 17 : 14 : 34 The asyncio.TaskGroup class provides a more modern alternative to create_task() . Using this API, the last example becomes: async def main (): a ... sync with asyncio . TaskGroup () as tg : task1 = tg . create_task ( say_after ( 1 , 'hello' )) task2 = tg . create_task ( say_after ( 2 , 'world' )) pri ... time ( ' %X ' ) } " ) The timing and output should be the same as for the previous version. Added in version 3.11: asyncio.TaskGroup . Awaitable ¶ あるオブジェクトを await 式の中で使うことができる場合、そのオブジェクトを awaitable オブジェクトと言います。 ...
https://man.mtool.work/python/3.14/library/asyncio-task.html
Call graph introspection — Python 3.14.8 ドキュメント 8261
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Call graph introspection テーマ 自動 ライト ダーク | Call graph introsp ... owing Python code: import asyncio async def test (): asyncio . print_call_graph () async def main (): async with asyncio . TaskGroup () as g : g . create_task ( test (), name = 'test' ) asyncio . run ( main ()) このサンプルコードは以下を出力します: * Task ... le '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 . __aexit__ () | File 't2.py' , line 7 , in async main () asyncio. format_call_graph ... nctions ¶ To introspect an async call graph asyncio requires cooperation from control flow structures, such as shield() or TaskGroup . Any time an intermediate Future object with low-level APIs like Future.add_done_callback() is involved, the following tw ...
https://man.mtool.work/python/3.14/library/asyncio-graph.html
Call graph introspection — Python 3.14.8 ドキュメント 8261
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Call graph introspection テーマ 自動 ライト ダーク | Call graph introsp ... owing Python code: import asyncio async def test (): asyncio . print_call_graph () async def main (): async with asyncio . TaskGroup () as g : g . create_task ( test (), name = 'test' ) asyncio . run ( main ()) このサンプルコードは以下を出力します: * Task ... le '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 . __aexit__ () | File 't2.py' , line 7 , in async main () asyncio. format_call_graph ... nctions ¶ To introspect an async call graph asyncio requires cooperation from control flow structures, such as shield() or TaskGroup . Any time an intermediate Future object with low-level APIs like Future.add_done_callback() is involved, the following tw ...
https://man.mtool.work/python/3.14/library/asyncio-graph.html
What's New In Python 3.13 — Python 3.14.8 ドキュメント 7641
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.13 テーマ 自動 ライト ダーク | What's New In Python 3.13 ¶ エディタ : Adam Turner と Thomas Wouters この記事では Py ... until() , stopping when any one of them is encountered. (Contributed by Bruce Merry in gh-81322 .) Improve the behavior of TaskGroup when an external cancellation collides with an internal cancellation. For example, when two task groups are nested and bot ... h experience an exception in a child task simultaneously, it was possible that the outer task group would hang, because its internal cancellation was swallowed by the inner task group. In the case where a task group is ca ... ncelledError will be raised at the next await , so the cancellation is not lost. An added benefit of these changes is that task groups now preserve the cancellation count ( cancelling() ). In order to handle some corner cases, uncancel() may now reset the ...
https://man.mtool.work/python/3.14/whatsnew/3.13.html
What's New In Python 3.13 — Python 3.14.8 ドキュメント 7641
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.13 テーマ 自動 ライト ダーク | What's New In Python 3.13 ¶ エディタ : Adam Turner と Thomas Wouters この記事では Py ... until() , stopping when any one of them is encountered. (Contributed by Bruce Merry in gh-81322 .) Improve the behavior of TaskGroup when an external cancellation collides with an internal cancellation. For example, when two task groups are nested and bot ... h experience an exception in a child task simultaneously, it was possible that the outer task group would hang, because its internal cancellation was swallowed by the inner task group. In the case where a task group is ca ... ncelledError will be raised at the next await , so the cancellation is not lost. An added benefit of these changes is that task groups now preserve the cancellation count ( cancelling() ). In order to handle some corner cases, uncancel() may now reset the ...
https://man.mtool.work/python/3.14/whatsnew/3.13.html
PREV 1 2 3 NEXT