Results of 1 - 6 of about 6 for submit (0.009 sec.)
- concurrent.futures --- 並列タスク実行 13142
- concurrent.futures --- 並列タスク実行 Added in version 3.2. ソースコード: Lib/concurrent/futures/thread.py 、 Lib/concurrent/futures/process.py および Lib/concurrent/futures/interpreter.py concurrent.futures モジュールは、呼び出し可能オブジ
...期呼び出しを実行するためのメソッドを提供する抽象クラスです。このクラスを直接使ってはならず、具象サブクラスを介して使います。 submit ( fn , / , * args , ** kwargs ) 呼び出し可能オブジェクト fn を、 fn(*args, **kwargs) として実行するようにスケジュールし、呼...実行を表現する Future オブジェクトを返します。 with ThreadPoolExecutor ( max_workers = 1 ) as executor : future = executor . submit ( pow , 323 , 1235 ) print ( future . result ()) map ( fn , * iterables , timeout = None , chunksize = 1 , buffersize = No...、現在保留中のフューチャーが実行された後で、使用中のすべての資源を解放するように伝えます。シャットダウンにより後に Executor.submit() と Executor.map() を呼び出すと RuntimeError が送出されます。 wait が True の場合、すべての未完了のフューチャの実行が完了... - https://man.mtool.work/python/3.14/library/concurrent.futures.html
- What's New In Python 3.2 9048
- What's New In Python 3.2 著者 : Raymond Hettinger この記事では Python 3.1 と比較した Python 3.2 の新機能を説明します。 Python 3.2 は 2011 年 2 月 20 日にリリースされました。 主な変更点をいくつか取り上げ、例を示します。 すべての詳細については
...持つ場合に起こる設計の難題は解決出来ます。 どちらの executor クラスとも 3 つのメソッドを持つ共通インターフェイスを持ちます。 submit() メソッドは呼び出し可能オブジェクトをスケジュールし、 Future オブジェクトを返します。 map() メソッドは一気に複数の非同期呼...使用例です: import concurrent.futures , shutil with concurrent . futures . ThreadPoolExecutor ( max_workers = 4 ) as e : e . submit ( shutil . copy , 'src1.txt' , 'dest1.txt' ) e . submit ( shutil . copy , 'src2.txt' , 'dest2.txt' ) e . submit ( shutil ....copy , 'src3.txt' , 'dest3.txt' ) e . submit ( shutil . copy , 'src3.txt' , 'dest4.txt' ) 参考 PEP 3148 - Futures -- 計算の非同期な実行 PEP written by Brian Quinlan. T... - https://man.mtool.work/python/3.14/whatsnew/3.2.html
- Logging クックブック 8152
- Logging クックブック Author : Vinay Sajip <vinay_sajip at red-dove dot com> このページは、過去に有用であるとされていた、logging に関連するいくつものレシピを含んでいます。チュートリアルやリファレンス情報へのリンクについては その他のリソース
...ょう): with concurrent . futures . ProcessPoolExecutor ( max_workers = 10 ) as executor : for i in range ( 10 ): executor . submit ( worker_process , queue , worker_configurer ) Gunicorn や uWSGI を使った Web アプリケーションのデプロイ Gunicorn や uWSGI... - https://man.mtool.work/python/3.14/howto/logging-cookbook.html
- コルーチンとタスク 8152
- コルーチンとタスク この節では、コルーチンと Task を利用する高レベルの asyncio の API の概略を解説します。 コルーチン ソースコード: Lib/asyncio/coroutines.py async/await 構文で宣言された コルーチン は、 asyncio を使ったアプリケーションを書く
...ing_loop ()) await stop_event . wait () with concurrent . futures . ThreadPoolExecutor ( 1 ) as tpe : complete_fut = tpe . submit ( asyncio . run , main ()) for fut in concurrent . futures . as_completed (( loop_fut , complete_fut )): if fut is loop_fu... - https://man.mtool.work/python/3.14/library/asyncio-task.html
- What's New In Python 3.7 8152
- What's New In Python 3.7 編集者 : Elvis Pranskevichus < elvis @ magic . io > この記事では Python 3.6 と比較した Python 3.7 の新機能を解説します。Python 3.7 は2018年6月27日にリリースされました。全詳細については 変更履歴 をご覧ください。 概要
...ed by Raymond Hettinger in bpo-32792 .) concurrent.futures.ThreadPoolExecutor と concurrent.futures.ProcessPoolExecutor の submit() メソッドは、インタープリタの終了処理中に呼ばれると RuntimeError を送出するようになりました。 (Contributed by Mark Nemec... - https://man.mtool.work/python/3.14/whatsnew/3.7.html
- What's New In Python 3.8 8152
- What's New In Python 3.8 編集者 : Raymond Hettinger この記事では Python 3.7 と比較した Python 3.8 の新機能を解説します。 Python 3.8 は 2019 年 10 月 14 日にリリースされました。 詳しくは 変更履歴 を参照してください。 概要 -- リリースハイライ
...st.TestCase.addCleanup() の function 。 concurrent.futures.ThreadPoolExecutor と concurrent.futures.ProcessPoolExecutor の submit() メソッドの fn 。 contextlib.ExitStack.callback() 、 contextlib.AsyncExitStack.callback() 、 contextlib.AsyncExitStack.pu... - https://man.mtool.work/python/3.14/whatsnew/3.8.html
PREV
1
NEXT