Results of 1 - 3 of about 3 for awaiting (0.002 sec.)
- A Conceptual Overview of asyncio 11180
- A Conceptual Overview of asyncio この HOWTO では、 asyncio の基本的な仕組みをしっかり理解できるように説明します。 推奨される書き方がどのように動き、なぜ推奨されるのかを理解する助けになるでしょう。 asyncio の主要な概念について、疑問を持ってい
...使い方があります。 await task await coroutine await の動作は、待機する対象のオブジェクトの型によって、重要な点で異なります。 Awaiting a task will cede control from the current task or coroutine to the event loop. In the process of relinquishing control, a...御の受け渡しはもう少し複雑ですが、大きくは違いません。 第 2 部では、これを可能にする仕組みを詳しく説明します。 Unlike tasks, awaiting a coroutine does not hand control back to the event loop! Wrapping a coroutine in a task first, then awaiting that would c...." ) 5 return value_sent_in 6 7 async def main (): 8 print ( "Beginning coroutine main()." ) 9 rock = Rock () 10 print ( "Awaiting rock..." ) 11 value_from_rock = await rock 12 print ( f "Coroutine received value: { value_from_rock } from rock." ) 13 re... - https://man.mtool.work/python/3.14/howto/a-conceptual-overview-of-asyncio.html
- Superseded Modules 9915
- Superseded Modules この章で説明するモジュールは、ほとんどの用途で他のモジュールに置き換えられており、主に後方互換性を保つために残されています。 この章には、問題の限られた範囲だけを扱い、標準ライブラリの別の場所にもっと広く適用できる解決策が
...能を提供するものではありません。 Alternatively, modules may appear in this chapter because they are deprecated outright, and awaiting removal in a future release, or they are soft deprecated and their use is actively discouraged in new projects. With the r... - https://man.mtool.work/python/3.14/library/superseded.html
- コルーチンとタスク 6771
- コルーチンとタスク この節では、コルーチンと Task を利用する高レベルの asyncio の API の概略を解説します。 コルーチン ソースコード: Lib/asyncio/coroutines.py async/await 構文で宣言された コルーチン は、 asyncio を使ったアプリケーションを書く
...) method. Calling it will cause the Task to throw a CancelledError exception into the wrapped coroutine. If a coroutine is awaiting on a Future object during cancellation, the Future object will be cancelled. cancelled() を使うと Task がキャンセルされたか... - https://man.mtool.work/python/3.14/library/asyncio-task.html
PREV
1
NEXT