per page, with , order by , clip by
Results of 1 - 10 of about 36 for threadsafe (0.005 sec.)
asyncio での開発 — Python 3.14.8 ドキュメント 14264
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » asyncio での開発 テーマ 自動 ライト ダーク | asyncio での開発 ¶ 非同期プ ... ントループは次のタスクを実行します。 別の OS スレッドからのコールバック ( callback ) をスケジュールする場合、 loop.call_soon_threadsafe() メソッドを使ってください。例: loop . call_soon_threadsafe ( callback , * args ) ほぼ全ての非同期オブジェクトはスレッドセ ... はほとんどありません。もしそのような目的で低レベルの asyncio API を呼び出すようなコードを書く必要がある場合、 loop.call_soon_threadsafe() メソッドを使ってください。例: loop . call_soon_threadsafe ( fut . cancel ) 別の OS スレッドからコルーチンオブジェクトをス ... ケジュールする場合は、 run_coroutine_threadsafe() メソッドを使ってください。 run_coroutine_threadsafe() は結果にアクセスするための concurrent.futures.Future オブジェクトを ...
https://man.mtool.work/python/3.14/library/asyncio-dev.html
asyncio での開発 — Python 3.14.8 ドキュメント 13297
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » asyncio での開発 テーマ 自動 ライト ダーク | asyncio での開発 ¶ 非同期プ ... ントループは次のタスクを実行します。 別の OS スレッドからのコールバック ( callback ) をスケジュールする場合、 loop.call_soon_threadsafe() メソッドを使ってください。例: loop . call_soon_threadsafe ( callback , * args ) ほぼ全ての非同期オブジェクトはスレッドセ ... はほとんどありません。もしそのような目的で低レベルの asyncio API を呼び出すようなコードを書く必要がある場合、 loop.call_soon_threadsafe() メソッドを使ってください。例: loop . call_soon_threadsafe ( fut . cancel ) 別の OS スレッドからコルーチンオブジェクトをス ... ケジュールする場合は、 run_coroutine_threadsafe() メソッドを使ってください。 run_coroutine_threadsafe() は結果にアクセスするための concurrent.futures.Future オブジェクトを ...
https://man.mtool.work/python/3.14/library/asyncio-dev.html
asyncio and free-threaded Python — Python 3.14.8 ドキュメント 9667
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » asyncio and free-threaded Python テーマ 自動 ライト ダーク | asyncio an ... s that make asyncio safe and efficient under free-threaded Python, together with benchmarks of the resulting improvements. Thread safety considerations ¶ While asyncio is designed to be thread-safe in a free-threaded Python environment, there are still som ... h asyncio from multiple threads, it's important to use thread-safe APIs provided by asyncio, such as asyncio.run_coroutine_threadsafe() for submitting coroutines to an event loop from another thread. If you need to call a callback from a different thread, ... you can use loop.call_soon_threadsafe() to schedule it safely. Synchronization : The synchronization primitives provided by asyncio (like asyncio.Lock and async ...
https://man.mtool.work/python/3.14/library/asyncio-threading.html
asyncio and free-threaded Python — Python 3.14.8 ドキュメント 9667
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » asyncio and free-threaded Python テーマ 自動 ライト ダーク | asyncio an ... s that make asyncio safe and efficient under free-threaded Python, together with benchmarks of the resulting improvements. Thread safety considerations ¶ While asyncio is designed to be thread-safe in a free-threaded Python environment, there are still som ... h asyncio from multiple threads, it's important to use thread-safe APIs provided by asyncio, such as asyncio.run_coroutine_threadsafe() for submitting coroutines to an event loop from another thread. If you need to call a callback from a different thread, ... you can use loop.call_soon_threadsafe() to schedule it safely. Synchronization : The synchronization primitives provided by asyncio (like asyncio.Lock and async ...
https://man.mtool.work/python/3.14/library/asyncio-threading.html
Coroutines and tasks — Python 3.14.8 ドキュメント 8701
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Coroutines and tasks テーマ 自動 ライト ダーク | Coroutines and tasks ¶ ... d() can also be used for CPU-bound functions. Added in version 3.9. Scheduling from other threads ¶ asyncio. run_coroutine_threadsafe ( coro , loop ) ¶ 与えられたイベントループにコルーチンを送ります。 この処理は、スレッドセーフです。 他の OS スレッドから結 ... oroutine coro = asyncio . sleep ( 1 , result = 3 ) # Submit the coroutine to a given loop future = asyncio . run_coroutine_threadsafe ( coro , loop ) # Wait for the result with an optional timeout argument assert future . result ( timeout = 2 ) == 3 async ... ( loop_fut , complete_fut )): if fut is loop_fut : loop = loop_fut . result () try : yield loop finally : loop . call_soon_threadsafe ( stop_event . set ) else : fut . result () # Create a loop in another thread with loop_in_thread () as loop : # Create a ...
https://man.mtool.work/python/3.14/library/asyncio-task.html
Coroutines and tasks — Python 3.14.8 ドキュメント 8701
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Coroutines and tasks テーマ 自動 ライト ダーク | Coroutines and tasks ¶ ... d() can also be used for CPU-bound functions. Added in version 3.9. Scheduling from other threads ¶ asyncio. run_coroutine_threadsafe ( coro , loop ) ¶ 与えられたイベントループにコルーチンを送ります。 この処理は、スレッドセーフです。 他の OS スレッドから結 ... oroutine coro = asyncio . sleep ( 1 , result = 3 ) # Submit the coroutine to a given loop future = asyncio . run_coroutine_threadsafe ( coro , loop ) # Wait for the result with an optional timeout argument assert future . result ( timeout = 2 ) == 3 async ... ( loop_fut , complete_fut )): if fut is loop_fut : loop = loop_fut . result () try : yield loop finally : loop . call_soon_threadsafe ( stop_event . set ) else : fut . result () # Create a loop in another thread with loop_in_thread () as loop : # Create a ...
https://man.mtool.work/python/3.14/library/asyncio-task.html
高水準の API インデックス — Python 3.14.8 ドキュメント 7987
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » 高水準の API インデックス テーマ 自動 ライト ダーク | 高水準の API イン ... 行します。 wait_for が適していない場合に有用です。 to_thread() 別の OS スレッドで非同期的に関数を実行します。 run_coroutine_threadsafe() 別の OS スレッドからコルーチンの実行をスケジュールします。 for in as_completed() for ループ向けにコルーチンの完了を監視し ...
https://man.mtool.work/python/3.14/library/asyncio-api-index.html
Event loop — Python 3.14.8 ドキュメント 7987
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Event loop テーマ 自動 ライト ダーク | Event loop ¶ ソースコード: Lib/a ... xtvars.Context for the callback to run in. Callbacks use the current context when no context is provided. Unlike call_soon_threadsafe() , this method is not thread-safe. loop. call_soon_threadsafe ( callback , * args , context = None ) ¶ A thread-safe vari ... ote() 関数を使うと適切に行うことができます。 Callback handles ¶ class asyncio. Handle ¶ loop.call_soon() や loop.call_soon_threadsafe() が返すコールバックのラッパーです。 get_context ( ) ¶ Return the contextvars.Context object associated with the handle. A ...
https://man.mtool.work/python/3.14/library/asyncio-eventloop.html
functools --- 高階関数と呼び出し可能オブジェクトの操作 — Python 3.14.8 ドキュメ... 7987
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » functools --- 高階関数と呼び出し可能オブジェクトの操作 テーマ 自動 ライト ダーク | functools --- ... turns the cached result 120 >>> factorial ( 12 ) # two new recursive calls, factorial(10) is cached 479001600 The cache is threadsafe so that the wrapped function can be used in multiple threads. This means that the underlying data structure will remain co ... るデコレータです。高価な関数や I/O に束縛されている関数を定期的に同じ引数で呼び出すときに、時間を節約できます。 The cache is threadsafe so that the wrapped function can be used in multiple threads. This means that the underlying data structure will remain co ...
https://man.mtool.work/python/3.14/library/functools.html
高水準の API インデックス — Python 3.14.8 ドキュメント 7987
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » 高水準の API インデックス テーマ 自動 ライト ダーク | 高水準の API イン ... 行します。 wait_for が適していない場合に有用です。 to_thread() 別の OS スレッドで非同期的に関数を実行します。 run_coroutine_threadsafe() 別の OS スレッドからコルーチンの実行をスケジュールします。 for in as_completed() for ループ向けにコルーチンの完了を監視し ...
https://man.mtool.work/python/3.14/library/asyncio-api-index.html
PREV 1 2 3 4 NEXT