Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 32 for wait (0.011 sec.)
17.1. threading --- スレッドベースの並列処理 — Python 3.6.5 ドキュメント 14112
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 関数 ( Lock.acquire() , RLock.acquire() , Condition.wait() など) の timeout 引数に許される最大値。これ以上の ... たロックを保持した状態で呼び出さなければなりません。 wait() メソッドはロックを解放します。そして別のスレッド ... ッドを起こすまでブロックします。一旦起こされたなら、 wait() は再びロックを得て戻ります。タイムアウトを指定す ... クを解放しません; 従って、スレッドが起こされたとき、 wait() の呼び出しは即座に処理を戻すわけではなく、 notif ...
https://man.plustar.jp/python/library/threading.html - [similar]
17.4. concurrent.futures -- 並列タスク実行 — Python 3.6.5 ドキュメント 12162
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... s not specified or None , there is no limit to the wait time. If a func call raises an exception, then tha ... で変更: chunksize 引数が追加されました。 shutdown ( wait=True ) ¶ executor に対して、現在保留中のフューチャ ... r.map() を呼び出すと RuntimeError が送出されます。 wait が True の場合、すべての未完了のフューチャの実行が ... リソースが解放されるまで、このメソッドは返りません。 wait が False の場合、このメソッドはすぐに返り、すべての ...
https://man.plustar.jp/python/library/concurrent.futures.html - [similar]
18.5.7. 同期プリミティブ — Python 3.6.5 ドキュメント 10423
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 計されましたが、 timeout 引数はありません。 asyncio.wait_for() 関数を用いてタイムアオウト後にタスクをキャン ... ) メソッドで偽にリセットされるフラグを管理します。 wait() メソッドはフラグが真になるまでブロックします。フ ... clear ( ) ¶ 内部フラグを偽にリセットします。その後 wait() を呼んでいるコルーチンは set() が呼び出されて内部 ... す。それを待っていたすべてのコルーチンが再開します。 wait() を呼び出していたコルーチンへのブロックが解除され ...
https://man.plustar.jp/python/library/asyncio-sync.html - [similar]
18.5.6. サブプロセス — Python 3.6.5 ドキュメント 9875
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... な poll() メソッドはありません communicate() および wait() メソッドは timeout 引数を取りません: wait_for() ... (バイト文字列のみサポートします) Process クラスの wait() メソッドは非同期であるのに対し、 Popen クラスの ... ubprocess-threads 節を参照してください。 coroutine wait ( ) ¶ プロセスの終了を待ちます。リターンコードが r ... None ) transport , protocol = yield from create # Wait for the subprocess exit using the process_exited() ...
https://man.plustar.jp/python/library/asyncio-subprocess.html - [similar]
18.5.9. asyncio での開発 — Python 3.6.5 ドキュメント 9118
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... び出すことで、明示的にキャンセルすることができます。 wait_for() 関数は、タイムアウト発生時に、待機中のタスク ... (), loop ) result = future . result ( timeout ) # Wait for the result with a timeout AbstractEventLoop.ru ... asks at exit: {<Task pending create() at test.py:7 wait_for=<Future pending cb=[Task._wakeup()]>>} Task wa ... ng! task: <Task pending create() done at test.py:5 wait_for=<Future pending cb=[Task._wakeup()]>> create() ...
https://man.plustar.jp/python/library/asyncio-dev.html - [similar]
18.5.3. タスクとコルーチン — Python 3.6.5 ドキュメント 9021
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 返す) と呼びます。 コルーチンができること: result = await future or result = yield from future -- suspends t ... aid about futures also applies to tasks. result = await coroutine or result = yield from coroutine -- wait ... ssion -- produce a result to the coroutine that is waiting for this one using await or yield from . raise ... ion -- raise an exception in the coroutine that is waiting for this one using await or yield from . Callin ...
https://man.plustar.jp/python/library/asyncio-task.html - [similar]
17.2. multiprocessing --- プロセスベースの並列処理 — Python 3.6.5 ドキュメント 9021
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ジェクトの数値ハンドル。 multiprocessing.connection.wait() を使用していくつかのイベントを同時に wait したい ... を呼ぶ方がより単純です。 Windows においては、これは WaitForSingleObject および WaitForMultipleObjects ファミ ... までの間にごくわずかな遅延が起きることがあり、 get_nowait() が queue.Empty を発生させることなく制御が呼び出し ... 発生します(その場合 timeout は無視されます)。 put_nowait ( obj ) ¶ put(obj, False) と等価です。 get ( [ blo ...
https://man.plustar.jp/python/library/multiprocessing.html - [similar]
18.5.5. ストリーム (コルーチンベースの API) — Python 3.6.5 ドキュメント 8795
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... er . close () loop . run_until_complete ( server . wait_closed ()) loop . close () 参考 AbstractEventLoop. ... s_utils import socketpair @asyncio . coroutine def wait_for_data ( loop ): # Create a pair of connected so ... sock = socketpair () # Register the open socket to wait for data reader , writer = yield from asyncio . op ... . call_soon ( wsock . send , 'abc' . encode ()) # Wait for data data = yield from reader . read ( 100 ) # ...
https://man.plustar.jp/python/library/asyncio-stream.html - [similar]
17.5. subprocess --- サブプロセス管理 — Python 3.6.5 ドキュメント 8361
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... rncode attribute. Otherwise, returns None . Popen. wait ( timeout=None ) ¶ 子プロセスが終了するまで待ちます ... imeoutExpired 例外を送出します。この例外を捕捉して wait を再試行するのは安全です。 注釈 stdout=PIPE や std ... m stdout and stderr, until end-of-file is reached. Wait for process to terminate. The optional input argum ... ロセス ID になります。 Popen. returncode ¶ poll() か wait() (か、間接的に communicate() ) から設定された、子 ...
https://man.plustar.jp/python/library/subprocess.html - [similar]
9.6. random --- 擬似乱数を生成する — Python 3.6.5 ドキュメント 8151
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ge_service_time = 5.0 stdev_service_time = 0.5 num_waiting = 0 arrivals = [] starts = [] arrival = service ... n range ( 20000 ): if arrival <= service_end : num_waiting += 1 arrival += expovariate ( 1.0 / average_arr ... nterval ) arrivals . append ( arrival ) else : num_waiting -= 1 service_start = service_end if num_waiting ... t + service_time starts . append ( service_start ) waits = [ start - arrival for arrival , start in zip ( ...
https://man.plustar.jp/python/library/random.html - [similar]
PREV 1 2 3 4 NEXT