per page, with , order by , clip by
Results of 1 - 10 of about 22 for coro (0.007 sec.)
A Conceptual Overview of asyncio — Python 3.14.8 ドキュメント 12390
ナビゲーション 索引 モジュール | 次へ | 前へ | 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 ... tutorial series on asyncio created by Python core team member, Łukasz Langa. 500 Lines or Less: A Web Crawler With asyncio Coroutines by A. Jesse Jiryu Davis and Guido van Rossum. A conceptual overview part 1: the high-level ¶ In part 1, we'll 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 loo ... # its collection of jobs. event_loop = asyncio . new_event_loop () event_loop . run_forever () Asynchronous functions and coroutines ¶ This is a basic, boring Python function: def hello_printer (): print ( "Hi, I am a lowly, simple printer, though I ...
https://man.mtool.work/python/3.14/howto/a-conceptual-overview-of-asyncio.html
A Conceptual Overview of asyncio — Python 3.14.8 ドキュメント 12390
ナビゲーション 索引 モジュール | 次へ | 前へ | 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 ... tutorial series on asyncio created by Python core team member, Łukasz Langa. 500 Lines or Less: A Web Crawler With asyncio Coroutines by A. Jesse Jiryu Davis and Guido van Rossum. A conceptual overview part 1: the high-level ¶ In part 1, we'll 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 loo ... # its collection of jobs. event_loop = asyncio . new_event_loop () event_loop . run_forever () Asynchronous functions and coroutines ¶ This is a basic, boring Python function: def hello_printer (): print ( "Hi, I am a lowly, simple printer, though I ...
https://man.mtool.work/python/3.14/howto/a-conceptual-overview-of-asyncio.html
Coroutines and tasks — Python 3.14.8 ドキュメント 10033
ナビゲーション 索引 モジュール | 次へ | 前へ | 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 を使ったアプリケーションを書くのに推奨される方法です。例えば ... rld 単にコルーチンを呼び出しただけでは、コルーチンの実行スケジュールは予約されていないことに注意してください: >>> main () <coroutine object main at 0x1053bb7c8> 実際にコルーチンを実行するために、asyncio は以下のメカニズムを提供しています: 最上位のエン ... できます: import asyncio async def nested (): return 42 async def main (): # Nothing happens if we just call "nested()". # A coroutine object is created but not awaited, # so it *won't run at all*. nested () # will raise a "RuntimeWarning". # Let's do ...
https://man.mtool.work/python/3.14/library/asyncio-task.html
Runners — Python 3.14.8 ドキュメント 9865
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Runners テーマ 自動 ライト ダーク | Runners ¶ ソースコード: Lib/asyncio ... な広く普及しているシナリオでの非同期コードの使用を簡素化することを目的としています。 非同期プログラムの実行 ¶ asyncio. run ( coro , * , debug = None , loop_factory = None ) ¶ Execute coro in an asyncio event loop and return the result. The argument can ... を尊重するためにデフォルトで None です。 バージョン 3.12 で変更: loop_factory 引数が追加されました。 バージョン 3.14 で変更: coro can be any awaitable object. 注釈 The asyncio policy system is deprecated and will be removed in Python 3.16; from there o ... . sleep ( 1 ) print ( 'hello' ) with asyncio . Runner () as runner : runner . run ( main ()) Added in version 3.11. run ( coro , * , context = None ) ¶ Execute coro in the embedded event loop. The argument can be any awaitable object. If the argumen ...
https://man.mtool.work/python/3.14/library/asyncio-runner.html
Coroutines and tasks — Python 3.14.8 ドキュメント 9865
ナビゲーション 索引 モジュール | 次へ | 前へ | 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 を使ったアプリケーションを書くのに推奨される方法です。例えば ... rld 単にコルーチンを呼び出しただけでは、コルーチンの実行スケジュールは予約されていないことに注意してください: >>> main () <coroutine object main at 0x1053bb7c8> 実際にコルーチンを実行するために、asyncio は以下のメカニズムを提供しています: 最上位のエン ... できます: import asyncio async def nested (): return 42 async def main (): # Nothing happens if we just call "nested()". # A coroutine object is created but not awaited, # so it *won't run at all*. nested () # will raise a "RuntimeWarning". # Let's do ...
https://man.mtool.work/python/3.14/library/asyncio-task.html
Runners — Python 3.14.8 ドキュメント 9865
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Runners テーマ 自動 ライト ダーク | Runners ¶ ソースコード: Lib/asyncio ... な広く普及しているシナリオでの非同期コードの使用を簡素化することを目的としています。 非同期プログラムの実行 ¶ asyncio. run ( coro , * , debug = None , loop_factory = None ) ¶ Execute coro in an asyncio event loop and return the result. The argument can ... を尊重するためにデフォルトで None です。 バージョン 3.12 で変更: loop_factory 引数が追加されました。 バージョン 3.14 で変更: coro can be any awaitable object. 注釈 The asyncio policy system is deprecated and will be removed in Python 3.16; from there o ... . sleep ( 1 ) print ( 'hello' ) with asyncio . Runner () as runner : runner . run ( main ()) Added in version 3.11. run ( coro , * , context = None ) ¶ Execute coro in the embedded event loop. The argument can be any awaitable object. If the argumen ...
https://man.mtool.work/python/3.14/library/asyncio-runner.html
asyncio での開発 — Python 3.14.8 ドキュメント 9157
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » asyncio での開発 テーマ 自動 ライト ダーク | asyncio での開発 ¶ 非同期プ ... 。例: loop . call_soon_threadsafe ( fut . cancel ) 別の OS スレッドからコルーチンオブジェクトをスケジュールする場合は、 run_coroutine_threadsafe() メソッドを使ってください。 run_coroutine_threadsafe() は結果にアクセスするための concurrent.futures.Futu ... re オブジェクトを返します: async def coro_func (): return await asyncio . sleep ( 1 , 42 ) # Later in another OS thread: future = asyncio . run_coroutine_threadsafe ... ( coro_func (), loop ) # Wait for the result: result = future . result () シグナルの処理を行うには、イベントループはメインスレッド ...
https://man.mtool.work/python/3.14/library/asyncio-dev.html
asyncio での開発 — Python 3.14.8 ドキュメント 8854
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » asyncio での開発 テーマ 自動 ライト ダーク | asyncio での開発 ¶ 非同期プ ... 。例: loop . call_soon_threadsafe ( fut . cancel ) 別の OS スレッドからコルーチンオブジェクトをスケジュールする場合は、 run_coroutine_threadsafe() メソッドを使ってください。 run_coroutine_threadsafe() は結果にアクセスするための concurrent.futures.Futu ... re オブジェクトを返します: async def coro_func (): return await asyncio . sleep ( 1 , 42 ) # Later in another OS thread: future = asyncio . run_coroutine_threadsafe ... ( coro_func (), loop ) # Wait for the result: result = future . result () シグナルの処理を行うには、イベントループはメインスレッド ...
https://man.mtool.work/python/3.14/library/asyncio-dev.html
What's New In Python 3.5 — Python 3.14.8 ドキュメント 8535
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.5 テーマ 自動 ライト ダーク | What's New In Python 3.5 ¶ エディタ : Elvis Pranskevichus < elvis @ magic . io >, Yur ... における非同期プログラミングを大幅に向上しました。 コルーチン関数は新たな構文 async def を用いて定義されます: >>> async def coro (): ... return 'spam' Inside a coroutine function, the new await expression can be used to suspend coroutine execution unt ... 同期イテレーションと同様に、非同期なコンテキストマネージャの新たな構文があります。以下のスクリプト: import asyncio async def coro ( name , lock ): print ( 'coro {} : waiting for lock' . format ( name )) async with lock : print ( 'coro {} : holding the ... lock' . format ( name )) await asyncio . sleep ( 1 ) print ( 'coro {} : releasing the lock' . format ( name )) loop = asyncio . get_event_loop () lock = asyncio . Lock () coros = asyncio . ...
https://man.mtool.work/python/3.14/whatsnew/3.5.html
What's New In Python 3.5 — Python 3.14.8 ドキュメント 8535
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.5 テーマ 自動 ライト ダーク | What's New In Python 3.5 ¶ エディタ : Elvis Pranskevichus < elvis @ magic . io >, Yur ... における非同期プログラミングを大幅に向上しました。 コルーチン関数は新たな構文 async def を用いて定義されます: >>> async def coro (): ... return 'spam' Inside a coroutine function, the new await expression can be used to suspend coroutine execution unt ... 同期イテレーションと同様に、非同期なコンテキストマネージャの新たな構文があります。以下のスクリプト: import asyncio async def coro ( name , lock ): print ( 'coro {} : waiting for lock' . format ( name )) async with lock : print ( 'coro {} : holding the ... lock' . format ( name )) await asyncio . sleep ( 1 ) print ( 'coro {} : releasing the lock' . format ( name )) loop = asyncio . get_event_loop () lock = asyncio . Lock () coros = asyncio . ...
https://man.mtool.work/python/3.14/whatsnew/3.5.html
PREV 1 2 3 NEXT