per page, with , order by , clip by
Results of 1 - 10 of about 97 for tasks (0.005 sec.)
Coroutines and tasks — Python 3.14.8 ドキュメント 12955
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Coroutines and tasks テーマ 自動 ライト ダーク | Coroutines and tasks... ' ) } " ) asyncio . run ( main ()) 予想される出力: started at 17 : 13 : 52 hello world finished at 17 : 13 : 55 asyncio の Tasks としてコルーチンを並行して走らせる asyncio.create_task() 関数。 上のコード例を編集して、ふたつの say_after コルーチンを 並 ... ncio . create_task ( say_after ( 2 , 'world' )) print ( f "started at { time . strftime ( ' %X ' ) } " ) # Wait until both tasks are completed (should take # around 2 seconds.) await task1 await task2 print ( f "finished at { time . strftime ( ' %X ' ... ject (), some_python_coroutine () ) Future オブジェクトを返す低レベル関数の良い例は loop.run_in_executor() です。 Creating tasks ¶ ソースコード: Lib/asyncio/tasks.py asyncio. create_task ( coro , * , name = None , context = None , eager_start = None , ...
https://man.mtool.work/python/3.14/library/asyncio-task.html
Coroutines and tasks — Python 3.14.8 ドキュメント 12955
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Coroutines and tasks テーマ 自動 ライト ダーク | Coroutines and tasks... ' ) } " ) asyncio . run ( main ()) 予想される出力: started at 17 : 13 : 52 hello world finished at 17 : 13 : 55 asyncio の Tasks としてコルーチンを並行して走らせる asyncio.create_task() 関数。 上のコード例を編集して、ふたつの say_after コルーチンを 並 ... ncio . create_task ( say_after ( 2 , 'world' )) print ( f "started at { time . strftime ( ' %X ' ) } " ) # Wait until both tasks are completed (should take # around 2 seconds.) await task1 await task2 print ( f "finished at { time . strftime ( ' %X ' ... ject (), some_python_coroutine () ) Future オブジェクトを返す低レベル関数の良い例は loop.run_in_executor() です。 Creating tasks ¶ ソースコード: Lib/asyncio/tasks.py asyncio. create_task ( coro , * , name = None , context = None , eager_start = None , ...
https://man.mtool.work/python/3.14/library/asyncio-task.html
キュー — Python 3.14.8 ドキュメント 9418
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » キュー テーマ 自動 ライト ダーク | キュー ¶ ソースコード: Lib/asyncio/q ... merly awaiting task. If immediate is false (the default), the queue can be wound down normally with get() calls to extract tasks that have already been loaded. And if task_done() is called for each remaining task, a pending join() will be unblocked no ... iate is true, the queue is terminated immediately. The queue is drained to be completely empty and the count of unfinished tasks is reduced by the number of tasks drained. If unfinished tasks is zero, callers of join() are unblocked. Also, blocked cal ... y. Use caution when using join() with immediate set to true. This unblocks the join even when no work has been done on the tasks, violating the usual invariant for joining a queue. Added in version 3.13. task_done ( ) ¶ Indicate that a formerly enqueu ...
https://man.mtool.work/python/3.14/library/asyncio-queue.html
キュー — Python 3.14.8 ドキュメント 9418
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » キュー テーマ 自動 ライト ダーク | キュー ¶ ソースコード: Lib/asyncio/q ... merly awaiting task. If immediate is false (the default), the queue can be wound down normally with get() calls to extract tasks that have already been loaded. And if task_done() is called for each remaining task, a pending join() will be unblocked no ... iate is true, the queue is terminated immediately. The queue is drained to be completely empty and the count of unfinished tasks is reduced by the number of tasks drained. If unfinished tasks is zero, callers of join() are unblocked. Also, blocked cal ... y. Use caution when using join() with immediate set to true. This unblocks the join even when no work has been done on the tasks, violating the usual invariant for joining a queue. Added in version 3.13. task_done ( ) ¶ Indicate that a formerly enqueu ...
https://man.mtool.work/python/3.14/library/asyncio-queue.html
A Conceptual Overview of asyncio — Python 3.14.8 ドキュメント 9196
ナビゲーション 索引 モジュール | 次へ | 前へ | 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 ... 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 a ... : >>> 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 callback functions whose i ... mportance will become clear in a moment when we discuss await . The recommended way to create tasks is via asyncio.create_task() . Creating a task automatically schedules it for execution (by adding a callback to run it in ...
https://man.mtool.work/python/3.14/howto/a-conceptual-overview-of-asyncio.html
A Conceptual Overview of asyncio — Python 3.14.8 ドキュメント 9025
ナビゲーション 索引 モジュール | 次へ | 前へ | 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 ... 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 a ... : >>> 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 callback functions whose i ... mportance will become clear in a moment when we discuss await . The recommended way to create tasks is via asyncio.create_task() . Creating a task automatically schedules it for execution (by adding a callback to run it in ...
https://man.mtool.work/python/3.14/howto/a-conceptual-overview-of-asyncio.html
同期プリミティブ — Python 3.14.8 ドキュメント 8960
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » 同期プリミティブ テーマ 自動 ライト ダーク | 同期プリミティブ ¶ ソースコ ... 待機している全てのタスクは、即座に通知を受けて実行を再開します。 clear ( ) ¶ イベントをクリア (アンセット) します Subsequent tasks awaiting on wait() will now block until the set() method is called again. is_set ( ) ¶ イベントがセットされている場合 True ... ソッドは下層のロックが 解除される まで待機し、ロックを ロック状態 に変更して True を返します。 notify ( n = 1 ) ¶ Wake up n tasks (1 by default) waiting on this condition. If fewer than n tasks are waiting they are all awakened. このメソッドが呼び出され ... rier object. Not thread-safe. A barrier is a simple synchronization primitive that allows to block until parties number of tasks are waiting on it. Tasks can wait on the wait() method and would be blocked until the specified number of tasks end up wai ...
https://man.mtool.work/python/3.14/library/asyncio-sync.html
同期プリミティブ — Python 3.14.8 ドキュメント 8960
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » 同期プリミティブ テーマ 自動 ライト ダーク | 同期プリミティブ ¶ ソースコ ... 待機している全てのタスクは、即座に通知を受けて実行を再開します。 clear ( ) ¶ イベントをクリア (アンセット) します Subsequent tasks awaiting on wait() will now block until the set() method is called again. is_set ( ) ¶ イベントがセットされている場合 True ... ソッドは下層のロックが 解除される まで待機し、ロックを ロック状態 に変更して True を返します。 notify ( n = 1 ) ¶ Wake up n tasks (1 by default) waiting on this condition. If fewer than n tasks are waiting they are all awakened. このメソッドが呼び出され ... rier object. Not thread-safe. A barrier is a simple synchronization primitive that allows to block until parties number of tasks are waiting on it. Tasks can wait on the wait() method and would be blocked until the specified number of tasks end up wai ...
https://man.mtool.work/python/3.14/library/asyncio-sync.html
concurrent.futures --- 並列タスク実行 — Python 3.14.8 ドキュメント 8790
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » concurrent.futures --- 並列タスク実行 テーマ 自動 ライト ダーク | concurrent.futures --- 並列タスク実行 ¶ Added in versi ... xecutor class. concurrent.futures.Future must not be confused with asyncio.Future , which is designed for use with asyncio tasks and coroutines. See the asyncio's Future documentation for a detailed comparison of the two. Availability : not WASI. この ... iterables are collected immediately rather than lazily, unless a buffersize is specified to limit the number of submitted tasks whose results have not yet been yielded. If the buffer is full, iteration over the iterables pauses until a result is yiel ... n using ProcessPoolExecutor , this method chops iterables into a number of chunks which it submits to the pool as separate tasks. The (approximate) size of these chunks can be specified by setting chunksize to a positive integer. For very long iterabl ...
https://man.mtool.work/python/3.14/library/concurrent.futures.html
concurrent.futures --- 並列タスク実行 — Python 3.14.8 ドキュメント 8619
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » concurrent.futures --- 並列タスク実行 テーマ 自動 ライト ダーク | concurrent.futures --- 並列タスク実行 ¶ Added in versi ... xecutor class. concurrent.futures.Future must not be confused with asyncio.Future , which is designed for use with asyncio tasks and coroutines. See the asyncio's Future documentation for a detailed comparison of the two. Availability : not WASI. この ... iterables are collected immediately rather than lazily, unless a buffersize is specified to limit the number of submitted tasks whose results have not yet been yielded. If the buffer is full, iteration over the iterables pauses until a result is yiel ... n using ProcessPoolExecutor , this method chops iterables into a number of chunks which it submits to the pool as separate tasks. The (approximate) size of these chunks can be specified by setting chunksize to a positive integer. For very long iterabl ...
https://man.mtool.work/python/3.14/library/concurrent.futures.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT