Results of 1 - 10 of about 118 for await (0.006 sec.)
- A Conceptual Overview of asyncio — Python 3.14.8 ドキュメント 11100
- ナビゲーション 索引 モジュール | 次へ | 前へ | 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
...f this article, you'll be able to comfortably answer these questions: What's happening behind the scenes when an object is awaited? How does asyncio differentiate between a task which doesn't need CPU time (such as a network request or file read) as o...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 an orchestra...nt loop. A task also maintains a list of callback functions whose importance 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 execut... - https://man.mtool.work/python/3.14/howto/a-conceptual-overview-of-asyncio.html
- A Conceptual Overview of asyncio — Python 3.14.8 ドキュメント 11100
- ナビゲーション 索引 モジュール | 次へ | 前へ | 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
...f this article, you'll be able to comfortably answer these questions: What's happening behind the scenes when an object is awaited? How does asyncio differentiate between a task which doesn't need CPU time (such as a network request or file read) as o...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 an orchestra...nt loop. A task also maintains a list of callback functions whose importance 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 execut... - https://man.mtool.work/python/3.14/howto/a-conceptual-overview-of-asyncio.html
- Coroutines and tasks — Python 3.14.8 ドキュメント 10115
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Coroutines and tasks テーマ 自動 ライト ダーク | Coroutines and tasks ¶
...ンと Task を利用する高レベルの asyncio の API の概略を解説します。 コルーチン ¶ Source code: Lib/asyncio/coroutines.py async/await 構文で宣言された コルーチン は、 asyncio を使ったアプリケーションを書くのに推奨される方法です。例えば、次のコードスニペット...o" を出力し、そこから 1 秒待って "world" を出力します: >>> import asyncio >>> async def main (): ... print ( 'hello' ) ... await asyncio . sleep ( 1 ) ... print ( 'world' ) >>> asyncio . run ( main ()) hello world 単にコルーチンを呼び出しただけでは、コ...ます: 最上位のエントリーポイントである "main()" 関数を実行する asyncio.run() 関数 (上の例を参照してください。) コルーチンを await すること。次のコード片は 1 秒間待機した後に "hello" と出力し、 更に 2 秒間待機してから "world" と出力します: import asynci... - https://man.mtool.work/python/3.14/library/asyncio-task.html
- Coroutines and tasks — Python 3.14.8 ドキュメント 10115
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Coroutines and tasks テーマ 自動 ライト ダーク | Coroutines and tasks ¶
...ンと Task を利用する高レベルの asyncio の API の概略を解説します。 コルーチン ¶ Source code: Lib/asyncio/coroutines.py async/await 構文で宣言された コルーチン は、 asyncio を使ったアプリケーションを書くのに推奨される方法です。例えば、次のコードスニペット...o" を出力し、そこから 1 秒待って "world" を出力します: >>> import asyncio >>> async def main (): ... print ( 'hello' ) ... await asyncio . sleep ( 1 ) ... print ( 'world' ) >>> asyncio . run ( main ()) hello world 単にコルーチンを呼び出しただけでは、コ...ます: 最上位のエントリーポイントである "main()" 関数を実行する asyncio.run() 関数 (上の例を参照してください。) コルーチンを await すること。次のコード片は 1 秒間待機した後に "hello" と出力し、 更に 2 秒間待機してから "world" と出力します: import asynci... - https://man.mtool.work/python/3.14/library/asyncio-task.html
- ストリーム — Python 3.14.8 ドキュメント 9479
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » ストリーム テーマ 自動 ライト ダーク | ストリーム ¶ ソースコード: Lib/a
...syncio/streams.py ストリームはネットワークコネクションと合わせて動作する高水準の async/await 可能な基本要素です。ストリームはコールバックや低水準のプロトコルやトランスポートを使うことなくデータを送受信することを可能...リームを使って書いた TCP エコークライアントの例です: import asyncio async def tcp_echo_client ( message ): reader , writer = await asyncio . open_connection ( '127.0.0.1' , 8888 ) print ( f 'Send: { message !r} ' ) writer . write ( message . encode ())...await writer . drain () data = await reader . read ( 100 ) print ( f 'Received: { data . decode () !r} ' ) print ( 'Close the connection' ) writer . close () a... - https://man.mtool.work/python/3.14/library/asyncio-stream.html
- ストリーム — Python 3.14.8 ドキュメント 9479
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » ストリーム テーマ 自動 ライト ダーク | ストリーム ¶ ソースコード: Lib/a
...syncio/streams.py ストリームはネットワークコネクションと合わせて動作する高水準の async/await 可能な基本要素です。ストリームはコールバックや低水準のプロトコルやトランスポートを使うことなくデータを送受信することを可能...リームを使って書いた TCP エコークライアントの例です: import asyncio async def tcp_echo_client ( message ): reader , writer = await asyncio . open_connection ( '127.0.0.1' , 8888 ) print ( f 'Send: { message !r} ' ) writer . write ( message . encode ())...await writer . drain () data = await reader . read ( 100 ) print ( f 'Received: { data . decode () !r} ' ) print ( 'Close the connection' ) writer . close () a... - https://man.mtool.work/python/3.14/library/asyncio-stream.html
- 低水準の API インデックス — Python 3.14.8 ドキュメント 9442
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » 低水準の API インデックス テーマ 自動 ライト ダーク | 低水準の API イン
...ee also the main documentation section about the Event loop methods . ライフサイクル loop.run_until_complete() Future/Task/awaitable が完了するまで実行します。 loop.run_forever() イベントループを永久に実行します。 loop.stop() イベントループを停止します...) イベントループが実行中の場合 True を返します。 loop.is_closed() イベントループがクローズされている場合 True を返します。 await loop.shutdown_asyncgens() 非同期ジェネレータをクローズします。 デバッグ loop.set_debug() デバッグモードを有効化または無効化...過後 にコールバックを実行します。 loop.call_at() 与えられた時刻に コールバックを実行します。 Thread/Interpreter/Process Pool await loop.run_in_executor() CPUバウンドなブロッキング関数、またはその他のブロッキング関数を concurrent.futures 実行オブジェクト... - https://man.mtool.work/python/3.14/library/asyncio-llapi-index.html
- 低水準の API インデックス — Python 3.14.8 ドキュメント 9442
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » 低水準の API インデックス テーマ 自動 ライト ダーク | 低水準の API イン
...ee also the main documentation section about the Event loop methods . ライフサイクル loop.run_until_complete() Future/Task/awaitable が完了するまで実行します。 loop.run_forever() イベントループを永久に実行します。 loop.stop() イベントループを停止します...) イベントループが実行中の場合 True を返します。 loop.is_closed() イベントループがクローズされている場合 True を返します。 await loop.shutdown_asyncgens() 非同期ジェネレータをクローズします。 デバッグ loop.set_debug() デバッグモードを有効化または無効化...過後 にコールバックを実行します。 loop.call_at() 与えられた時刻に コールバックを実行します。 Thread/Interpreter/Process Pool await loop.run_in_executor() CPUバウンドなブロッキング関数、またはその他のブロッキング関数を concurrent.futures 実行オブジェクト... - https://man.mtool.work/python/3.14/library/asyncio-llapi-index.html
- 高水準の API インデックス — Python 3.14.8 ドキュメント 8818
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » 高水準の API インデックス テーマ 自動 ライト ダーク | 高水準の API イン
...返します。 current_task() 現在のタスクを返します。 all_tasks() イベントループのまだ終了していないすべてのタスクを返します。 await sleep() 数秒間スリープします。 await gather() 並行してスケジュールして、待ちます。 await wait_for() タイムアウトで実行しま...す。 await shield() 取り消しから保護します。 await wait() 完了かどうかを監視します。 timeout() タイムアウト付きで実行します。 wait_fo...キュメント も参照してください。 サブプロセス ¶ サブプロセスを生成したり、シェルコマンドを実行するためのユーティリティです。 await create_subprocess_exec() サブプロセスを作成します。 await create_subprocess_shell() シェルコマンドを実行します。 使用例 シ... - https://man.mtool.work/python/3.14/library/asyncio-api-index.html
- 高水準の API インデックス — Python 3.14.8 ドキュメント 8818
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » 高水準の API インデックス テーマ 自動 ライト ダーク | 高水準の API イン
...返します。 current_task() 現在のタスクを返します。 all_tasks() イベントループのまだ終了していないすべてのタスクを返します。 await sleep() 数秒間スリープします。 await gather() 並行してスケジュールして、待ちます。 await wait_for() タイムアウトで実行しま...す。 await shield() 取り消しから保護します。 await wait() 完了かどうかを監視します。 timeout() タイムアウト付きで実行します。 wait_fo...キュメント も参照してください。 サブプロセス ¶ サブプロセスを生成したり、シェルコマンドを実行するためのユーティリティです。 await create_subprocess_exec() サブプロセスを作成します。 await create_subprocess_shell() シェルコマンドを実行します。 使用例 シ... - https://man.mtool.work/python/3.14/library/asyncio-api-index.html