高水準の API インデックス¶
このページには、すべての高水準の 非同期/待機 可能な asyncio API が一覧になっています。
Task¶
ユーティリティは asyncio プログラムを実行し、タスクを作成し、タイムアウトのある複数の機能を待っています。
| イベントループを作成し、コルーチンを実行し、ループを閉じます。 | |
| asyncio タスクを開始します。 | |
| 
 | 数秒間スリープします。 | 
| 
 | 並行してスケジュールして、待ちます。 | 
| 
 | タイムアウトで実行します。 | 
| 
 | 取り消しから保護します。 | 
| 
 | 完了かどうかを監視します。 | 
| 現在のタスクを返します。 | |
| イベントループのすべてのタスクを返します。 | |
| Task オブジェクト | |
| Schedule a coroutine from another OS thread. | |
| 
 | Monitor for completion with a  | 
使用例
キュー¶
Queues should be used to distribute work amongst multiple asyncio Tasks, implement connection pools, and pub/sub patterns.
| A FIFO queue. | |
| A priority queue. | |
| A LIFO queue. | 
使用例
サブプロセス¶
Utilities to spawn subprocesses and run shell commands.
| 
 | サブプロセスを作成します。 | 
| Run a shell command. | 
使用例
- See also the subprocess APIs documentation. 
ストリーム¶
High-level APIs to work with network IO.
| 
 | Establish a TCP connection. | 
| 
 | Establish a Unix socket connection. | 
| 
 | Start a TCP server. | 
| 
 | Unix のソケットサーバーを起動します。 | 
| High-level async/await object to receive network data. | |
| High-level async/await object to send network data. | 
使用例
- See also the streams APIs documentation. 
Synchronization¶
Threading-like synchronization primitives that can be used in Tasks.
| A mutex lock. | |
| An event object. | |
| A condition object. | |
| A semaphore. | |
| A bounded semaphore. | 
使用例
- See also the documentation of asyncio synchronization primitives. 
例外¶
| Raised on timeout by functions like  | |
| Raised when a Task is cancelled. See also  | 
使用例
- Handling CancelledError to run code on cancellation request. 
- See also the full list of asyncio-specific exceptions. 
