per page, with , order by , clip by
Results of 1 - 10 of about 143 for task (0.005 sec.)
Coroutines and tasks — Python 3.14.8 ドキュメント 11017
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Coroutines and tasks テーマ 自動 ライト ダーク | Coroutines and tasks ¶ ... この節では、コルーチンと Task を利用する高レベルの asyncio の API の概略を解説します。 コルーチン ¶ Source code: Lib/asyncio/coroutines.py async/await 構 ... ' ) } " ) asyncio . run ( main ()) 予想される出力: started at 17 : 13 : 52 hello world finished at 17 : 13 : 55 asyncio の Tasks としてコルーチンを並行して走らせる asyncio.create_task() 関数。 上のコード例を編集して、ふたつの say_after コルーチンを 並 ... 行して 走らせてみましょう: async def main (): task1 = asyncio . create_task ( say_after ( 1 , 'hello' )) task2 = asyncio . create_task ( say_after ( 2 , 'world' )) print ( f ...
https://man.mtool.work/python/3.14/library/asyncio-task.html
Coroutines and tasks — Python 3.14.8 ドキュメント 11017
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Coroutines and tasks テーマ 自動 ライト ダーク | Coroutines and tasks ¶ ... この節では、コルーチンと Task を利用する高レベルの asyncio の API の概略を解説します。 コルーチン ¶ Source code: Lib/asyncio/coroutines.py async/await 構 ... ' ) } " ) asyncio . run ( main ()) 予想される出力: started at 17 : 13 : 52 hello world finished at 17 : 13 : 55 asyncio の Tasks としてコルーチンを並行して走らせる asyncio.create_task() 関数。 上のコード例を編集して、ふたつの say_after コルーチンを 並 ... 行して 走らせてみましょう: async def main (): task1 = asyncio . create_task ( say_after ( 1 , 'hello' )) task2 = asyncio . create_task ( say_after ( 2 , 'world' )) print ( f ...
https://man.mtool.work/python/3.14/library/asyncio-task.html
Extending — Python 3.14.8 ドキュメント 9868
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Extending テーマ 自動 ライト ダーク | Extending ¶ The main direction fo ... r asyncio extending is writing custom event loop classes. Asyncio has helpers that could be used to simplify this task. 注釈 Third-parties should reuse existing asyncio code with caution, a new Python version is free to break backward compat ... by inherited class. The _make_socket_transport() method is not documented and is considered as an internal API. Future and Task private constructors ¶ asyncio.Future and asyncio.Task should be never created directly, please use corresponding loop.cre ... ate_future() and loop.create_task() , or asyncio.create_task() factories instead. However, third-party event loops may reuse built-in future and task implem ...
https://man.mtool.work/python/3.14/library/asyncio-extending.html
Extending — Python 3.14.8 ドキュメント 9868
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Extending テーマ 自動 ライト ダーク | Extending ¶ The main direction fo ... r asyncio extending is writing custom event loop classes. Asyncio has helpers that could be used to simplify this task. 注釈 Third-parties should reuse existing asyncio code with caution, a new Python version is free to break backward compat ... by inherited class. The _make_socket_transport() method is not documented and is considered as an internal API. Future and Task private constructors ¶ asyncio.Future and asyncio.Task should be never created directly, please use corresponding loop.cre ... ate_future() and loop.create_task() , or asyncio.create_task() factories instead. However, third-party event loops may reuse built-in future and task implem ...
https://man.mtool.work/python/3.14/library/asyncio-extending.html
A Conceptual Overview of asyncio — Python 3.14.8 ドキュメント 9643
ナビゲーション 索引 モジュール | 次へ | 前へ | 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 ... er 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 opposed to a task that does (such as computing n-f ... t 1, we'll cover the main, high-level building blocks of asyncio : the event loop, coroutine functions, coroutine objects, tasks, and await . Event Loop ¶ Everything in asyncio happens relative to the event loop. It's the star of the show. It's like ... then pauses. For example: >>> generator = get_random_number () >>> next ( generator ) Hi 1 >>> next ( generator ) Hello 7 Task ¶ Roughly speaking, tasks are coroutines (not coroutine functions) tied to an event loop. A task also maintains a list of ...
https://man.mtool.work/python/3.14/howto/a-conceptual-overview-of-asyncio.html
A Conceptual Overview of asyncio — Python 3.14.8 ドキュメント 9643
ナビゲーション 索引 モジュール | 次へ | 前へ | 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 ... er 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 opposed to a task that does (such as computing n-f ... t 1, we'll cover the main, high-level building blocks of asyncio : the event loop, coroutine functions, coroutine objects, tasks, and await . Event Loop ¶ Everything in asyncio happens relative to the event loop. It's the star of the show. It's like ... then pauses. For example: >>> generator = get_random_number () >>> next ( generator ) Hi 1 >>> next ( generator ) Hello 7 Task ¶ Roughly speaking, tasks are coroutines (not coroutine functions) tied to an event loop. A task also maintains a list of ...
https://man.mtool.work/python/3.14/howto/a-conceptual-overview-of-asyncio.html
Command-line introspection tools — Python 3.14.8 ドキュメント 9074
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Command-line introspection tools テーマ 自動 ライト ダーク | Command-li ... ols ¶ Source code: Lib/asyncio/tools.py The asyncio module can be invoked as a script via python -m asyncio to inspect the task graph of another running Python process without modifying it or restarting it. The asyncio.tools submodule implements this ... mission requirements for details. 参考 Call graph introspection Programmatic APIs for inspecting the async call graph of a task or future in the current process. The command examples below use this program, which creates a task hierarchy suitable for ... 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: ...
https://man.mtool.work/python/3.14/library/asyncio-tools.html
Command-line introspection tools — Python 3.14.8 ドキュメント 9074
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Command-line introspection tools テーマ 自動 ライト ダーク | Command-li ... ols ¶ Source code: Lib/asyncio/tools.py The asyncio module can be invoked as a script via python -m asyncio to inspect the task graph of another running Python process without modifying it or restarting it. The asyncio.tools submodule implements this ... mission requirements for details. 参考 Call graph introspection Programmatic APIs for inspecting the async call graph of a task or future in the current process. The command examples below use this program, which creates a task hierarchy suitable for ... 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: ...
https://man.mtool.work/python/3.14/library/asyncio-tools.html
Call graph introspection — Python 3.14.8 ドキュメント 8968
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Call graph introspection テーマ 自動 ライト ダーク | Call graph introsp ... y asyncio has powerful runtime call graph introspection utilities to trace the entire call graph of a running coroutine or task , or a suspended future . These utilities and the underlying machinery can be used from within a Python program or by exte ... rnal profilers and debuggers. 参考 Command-line introspection tools Command-line tools for inspecting tasks in another running Python process. Added in version 3.14. asyncio. print_call_graph ( future = None , / , * , file = None ... , depth = 1 , limit = None ) ¶ Print the async call graph for the current task or the provided Task or Future . This function prints entries starting from the top frame and going down towards the invoc ...
https://man.mtool.work/python/3.14/library/asyncio-graph.html
Call graph introspection — Python 3.14.8 ドキュメント 8968
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Call graph introspection テーマ 自動 ライト ダーク | Call graph introsp ... y asyncio has powerful runtime call graph introspection utilities to trace the entire call graph of a running coroutine or task , or a suspended future . These utilities and the underlying machinery can be used from within a Python program or by exte ... rnal profilers and debuggers. 参考 Command-line introspection tools Command-line tools for inspecting tasks in another running Python process. Added in version 3.14. asyncio. print_call_graph ( future = None , / , * , file = None ... , depth = 1 , limit = None ) ¶ Print the async call graph for the current task or the provided Task or Future . This function prints entries starting from the top frame and going down towards the invoc ...
https://man.mtool.work/python/3.14/library/asyncio-graph.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT