|
5 | 5 | <meta charset="utf-8" />
|
6 | 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
7 | 7 |
|
8 |
| - <title>Runners — Python 3.12.0 說明文件</title><meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 8 | + <title>Runners (執行器) — Python 3.12.0 說明文件</title><meta name="viewport" content="width=device-width, initial-scale=1.0"> |
9 | 9 |
|
10 | 10 | <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=80d5e7a1" />
|
11 | 11 | <link rel="stylesheet" type="text/css" href="../_static/pydoctheme.css?v=aa5eeaf2" />
|
|
85 | 85 | <div>
|
86 | 86 | <h3><a href="../contents.html">目錄</a></h3>
|
87 | 87 | <ul>
|
88 |
| -<li><a class="reference internal" href="#">Runners</a><ul> |
| 88 | +<li><a class="reference internal" href="#">Runners (執行器)</a><ul> |
89 | 89 | <li><a class="reference internal" href="#running-an-asyncio-program">Running an asyncio Program</a><ul>
|
90 | 90 | <li><a class="reference internal" href="#asyncio.run"><code class="docutils literal notranslate"><span class="pre">run()</span></code></a></li>
|
91 | 91 | </ul>
|
@@ -163,7 +163,7 @@ <h3>瀏覽</h3>
|
163 | 163 | <li class="nav-item nav-item-1"><a href="index.html" >Python 標準函式庫 (Standard Library)</a> »</li>
|
164 | 164 | <li class="nav-item nav-item-2"><a href="ipc.html" >Networking and Interprocess Communication</a> »</li>
|
165 | 165 | <li class="nav-item nav-item-3"><a href="asyncio.html" accesskey="U"><code class="xref py py-mod docutils literal notranslate"><span class="pre">asyncio</span></code> --- 非同步 I/O</a> »</li>
|
166 |
| - <li class="nav-item nav-item-this"><a href="">Runners</a></li> |
| 166 | + <li class="nav-item nav-item-this"><a href="">Runners (執行器)</a></li> |
167 | 167 | <li class="right">
|
168 | 168 |
|
169 | 169 |
|
@@ -194,11 +194,10 @@ <h3>瀏覽</h3>
|
194 | 194 | <div class="body" role="main">
|
195 | 195 |
|
196 | 196 | <section id="runners">
|
197 |
| -<h1>Runners<a class="headerlink" href="#runners" title="Link to this heading">¶</a></h1> |
| 197 | +<h1>Runners (執行器)<a class="headerlink" href="#runners" title="Link to this heading">¶</a></h1> |
198 | 198 | <p><strong>原始碼:</strong><a class="reference external" href="https://github.com/python/cpython/tree/3.12/Lib/asyncio/runners.py">Lib/asyncio/runners.py</a></p>
|
199 |
| -<p>This section outlines high-level asyncio primitives to run asyncio code.</p> |
200 |
| -<p>They are built on top of an <a class="reference internal" href="asyncio-eventloop.html#asyncio-event-loop"><span class="std std-ref">event loop</span></a> with the aim |
201 |
| -to simplify async code usage for common wide-spread scenarios.</p> |
| 199 | +<p>這個章節概述用於執行 asyncio 程式碼的高階 asyncio 原始物件。</p> |
| 200 | +<p>他們是基於一個<a class="reference internal" href="asyncio-eventloop.html#asyncio-event-loop"><span class="std std-ref">事件迴圈</span></a>,目的是為了簡化常見且廣泛運用場景的非同步程式碼。</p> |
202 | 201 | <nav class="contents local" id="id1">
|
203 | 202 | <ul class="simple">
|
204 | 203 | <li><p><a class="reference internal" href="#running-an-asyncio-program" id="id2">Running an asyncio Program</a></p></li>
|
@@ -353,7 +352,7 @@ <h2><a class="toc-backref" href="#id4" role="doc-backlink">Handling Keyboard Int
|
353 | 352 | <div>
|
354 | 353 | <h3><a href="../contents.html">目錄</a></h3>
|
355 | 354 | <ul>
|
356 |
| -<li><a class="reference internal" href="#">Runners</a><ul> |
| 355 | +<li><a class="reference internal" href="#">Runners (執行器)</a><ul> |
357 | 356 | <li><a class="reference internal" href="#running-an-asyncio-program">Running an asyncio Program</a><ul>
|
358 | 357 | <li><a class="reference internal" href="#asyncio.run"><code class="docutils literal notranslate"><span class="pre">run()</span></code></a></li>
|
359 | 358 | </ul>
|
@@ -434,7 +433,7 @@ <h3>瀏覽</h3>
|
434 | 433 | <li class="nav-item nav-item-1"><a href="index.html" >Python 標準函式庫 (Standard Library)</a> »</li>
|
435 | 434 | <li class="nav-item nav-item-2"><a href="ipc.html" >Networking and Interprocess Communication</a> »</li>
|
436 | 435 | <li class="nav-item nav-item-3"><a href="asyncio.html" ><code class="xref py py-mod docutils literal notranslate"><span class="pre">asyncio</span></code> --- 非同步 I/O</a> »</li>
|
437 |
| - <li class="nav-item nav-item-this"><a href="">Runners</a></li> |
| 436 | + <li class="nav-item nav-item-this"><a href="">Runners (執行器)</a></li> |
438 | 437 | <li class="right">
|
439 | 438 |
|
440 | 439 |
|
|
0 commit comments