Results of 1 - 10 of about 53 for waiting (0.032 sec.)
- 同期プリミティブ — Python 3.14.8 ドキュメント 14631
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » 同期プリミティブ テーマ 自動 ライト ダーク | 同期プリミティブ ¶ ソースコ
...す。 バージョン 3.10 で変更: loop パラメータが削除されました。 以下はプログラム例です: async def waiter ( event ): print ( 'waiting for it ...' ) await event . wait () print ( '... got it!' ) async def main (): # Create an Event object. event = asyncio ....いる全てのタスクは、即座に通知を受けて実行を再開します。 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. このメソッドが呼び出される前にロックを獲得して... - https://man.mtool.work/python/3.14/library/asyncio-sync.html
- 同期プリミティブ — Python 3.14.8 ドキュメント 14631
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » 同期プリミティブ テーマ 自動 ライト ダーク | 同期プリミティブ ¶ ソースコ
...す。 バージョン 3.10 で変更: loop パラメータが削除されました。 以下はプログラム例です: async def waiter ( event ): print ( 'waiting for it ...' ) await event . wait () print ( '... got it!' ) async def main (): # Create an Event object. event = asyncio ....いる全てのタスクは、即座に通知を受けて実行を再開します。 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. このメソッドが呼び出される前にロックを獲得して... - https://man.mtool.work/python/3.14/library/asyncio-sync.html
- Coroutines and tasks — Python 3.14.8 ドキュメント 8424
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Coroutines and tasks テーマ 自動 ライト ダーク | Coroutines and tasks ¶
...が送出されます。 注釈 asyncio.TaskGroup.create_task() is a new alternative leveraging structural concurrency; it allows for waiting for a group of related tasks with strong safety guarantees. 重要 タスクが実行中に消えないように、この関数の結果の参照を保存...1 . result () } , { task2 . result () } " ) The async with statement will wait for all tasks in the group to finish. While waiting, new tasks may still be added to the group (for example, by passing tg into one of the coroutines and calling tg.create_ta...ト ¶ asyncio. timeout ( delay ) ¶ Return an asynchronous context manager that can be used to limit the amount of time spent waiting on something. delay can either be None , or a float/int number of seconds to wait. If delay is None , no time limit will b... - https://man.mtool.work/python/3.14/library/asyncio-task.html
- Coroutines and tasks — Python 3.14.8 ドキュメント 8424
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Coroutines and tasks テーマ 自動 ライト ダーク | Coroutines and tasks ¶
...が送出されます。 注釈 asyncio.TaskGroup.create_task() is a new alternative leveraging structural concurrency; it allows for waiting for a group of related tasks with strong safety guarantees. 重要 タスクが実行中に消えないように、この関数の結果の参照を保存...1 . result () } , { task2 . result () } " ) The async with statement will wait for all tasks in the group to finish. While waiting, new tasks may still be added to the group (for example, by passing tg into one of the coroutines and calling tg.create_ta...ト ¶ asyncio. timeout ( delay ) ¶ Return an asynchronous context manager that can be used to limit the amount of time spent waiting on something. delay can either be None , or a float/int number of seconds to wait. If delay is None , no time limit will b... - https://man.mtool.work/python/3.14/library/asyncio-task.html
- concurrent.futures --- 並列タスク実行 — Python 3.14.8 ドキュメント 8290
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » concurrent.futures --- 並列タスク実行 テーマ 自動 ライト ダーク | concurrent.futures --- 並列タスク実行 ¶ Added in versi
...s method explicitly if you use the executor as a context manager via the with statement, which will shutdown the Executor (waiting as if Executor.shutdown() were called with wait set to True ): import shutil with ThreadPoolExecutor ( max_workers = 4 ) a...あります。例: import time def wait_on_b (): time . sleep ( 5 ) print ( b . result ()) # b will never complete because it is waiting on a. return 5 def wait_on_a (): time . sleep ( 5 ) print ( a . result ()) # a will never complete because it is waiting o...wait_on_future ) # Note: calling future.result() would also cause a deadlock because # the single worker thread is already waiting for wait_on_future(). class concurrent.futures. ThreadPoolExecutor ( max_workers = None , thread_name_prefix = '' , initia... - https://man.mtool.work/python/3.14/library/concurrent.futures.html
- concurrent.futures --- 並列タスク実行 — Python 3.14.8 ドキュメント 8290
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » concurrent.futures --- 並列タスク実行 テーマ 自動 ライト ダーク | concurrent.futures --- 並列タスク実行 ¶ Added in versi
...s method explicitly if you use the executor as a context manager via the with statement, which will shutdown the Executor (waiting as if Executor.shutdown() were called with wait set to True ): import shutil with ThreadPoolExecutor ( max_workers = 4 ) a...あります。例: import time def wait_on_b (): time . sleep ( 5 ) print ( b . result ()) # b will never complete because it is waiting on a. return 5 def wait_on_a (): time . sleep ( 5 ) print ( a . result ()) # a will never complete because it is waiting o...wait_on_future ) # Note: calling future.result() would also cause a deadlock because # the single worker thread is already waiting for wait_on_future(). class concurrent.futures. ThreadPoolExecutor ( max_workers = None , thread_name_prefix = '' , initia... - https://man.mtool.work/python/3.14/library/concurrent.futures.html
- queue --- 同期キュークラス — Python 3.14.8 ドキュメント 7724
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » queue --- 同期キュークラス テーマ 自動 ライト ダーク | queue --- 同期キュークラス ¶ ソースコード: Lib/queue.py The queue
...処理の完了が示されるときは常に減算されます。未完了のタスクのカウント値がゼロになった場合、 join() のブロックが解除されます。 Waiting for task completion ¶ キューに入れたタスクが完了するのを待つ例: import threading import queue q = queue . Queue () def wor...block True False アイテム SimpleQueue maxsize task empty 要素 例外 保証 目次 queue --- 同期キュークラス キューオブジェクト Waiting for task completion Terminating queues SimpleQueue オブジェクト 前のトピックへ sched --- イベントスケジューラー 次のトピッ... - https://man.mtool.work/python/3.14/library/queue.html
- queue --- 同期キュークラス — Python 3.14.8 ドキュメント 7724
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » queue --- 同期キュークラス テーマ 自動 ライト ダーク | queue --- 同期キュークラス ¶ ソースコード: Lib/queue.py The queue
...処理の完了が示されるときは常に減算されます。未完了のタスクのカウント値がゼロになった場合、 join() のブロックが解除されます。 Waiting for task completion ¶ キューに入れたタスクが完了するのを待つ例: import threading import queue q = queue . Queue () def wor...e join nowait ShutDown 後続 タスク down 完了 tasks queues エントリ 最初 目次 queue --- 同期キュークラス キューオブジェクト Waiting for task completion Terminating queues SimpleQueue オブジェクト 前のトピックへ sched --- イベントスケジューラー 次のトピッ... - https://man.mtool.work/python/3.14/library/queue.html
- 変更履歴 — Python 3.14.8 ドキュメント 7576
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...ding entries for the new keys. gh-157838 : Merge biased reference counts on behalf of threads that are detached instead of waiting for them to attach again, in the free-threaded build. gh-157378 : Fix SyntaxError.offset and SyntaxError.end_offset for th...g a connection twice when resume_writing() closes the transport. gh-156523 : Fix asyncio.as_completed() not recording the awaiting task in the call graph. gh-156476 : The pure Python implementation of queue.SimpleQueue.get() now ignores timeout when blo...Tests() for asynchronous test methods. They were wrapped in a synchronous function, which discarded the coroutine without awaiting it, so the test silently did not run at all. gh-132581 : The list of tests which altered the execution environment now inc... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- 変更履歴 — Python 3.14.8 ドキュメント 7576
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...ding entries for the new keys. gh-157838 : Merge biased reference counts on behalf of threads that are detached instead of waiting for them to attach again, in the free-threaded build. gh-157378 : Fix SyntaxError.offset and SyntaxError.end_offset for th...g a connection twice when resume_writing() closes the transport. gh-156523 : Fix asyncio.as_completed() not recording the awaiting task in the call graph. gh-156476 : The pure Python implementation of queue.SimpleQueue.get() now ignores timeout when blo...Tests() for asynchronous test methods. They were wrapped in a synchronous function, which discarded the coroutine without awaiting it, so the test silently did not run at all. gh-132581 : The list of tests which altered the execution environment now inc... - https://man.mtool.work/python/3.14/whatsnew/changelog.html