@@ -132,15 +132,14 @@ msgid ""
132132msgstr "Future는 비동기 연산의 최종 결과를 나타냅니다. 스레드 안전하지 않습니다."
133133
134134#: ../../library/asyncio-future.rst:86
135- #, fuzzy
136135msgid ""
137136"Future is an :term:`awaitable` object. Coroutines can await on Future "
138137"objects until they either have a result or an exception set, or until "
139138"they are cancelled. A Future can be awaited multiple times and the result"
140139" is same."
141140msgstr ""
142141"Future는 :term:`어웨이터블 <awaitable>` 객체입니다. 코루틴은 결과나 예외가 설정되거나 취소될 때까지 "
143- "Future 객체를 기다릴 수 있습니다."
142+ "Future 객체를 기다릴 수 있습니다. Future는 여러번 어웨이트할 수 있으며 결과는 같습니다. "
144143
145144#: ../../library/asyncio-future.rst:91
146145msgid ""
@@ -198,7 +197,6 @@ msgid ""
198197msgstr "Future가 *취소(cancelled)*\\ 되었으면, 이 메서드는 :exc:`CancelledError` 예외를 발생시킵니다."
199198
200199#: ../../library/asyncio-future.rst:122
201- #, fuzzy
202200msgid ""
203201"If the Future's result isn't yet available, this method raises an "
204202":exc:`InvalidStateError` exception."
@@ -209,7 +207,6 @@ msgid "Mark the Future as *done* and set its result."
209207msgstr "Future를 *완료(done)*\\ 로 표시하고, 그 결과를 설정합니다."
210208
211209#: ../../library/asyncio-future.rst:129 ../../library/asyncio-future.rst:136
212- #, fuzzy
213210msgid "Raises an :exc:`InvalidStateError` error if the Future is already *done*."
214211msgstr "Future가 이미 *완료(done)*\\ 했으면, :exc:`InvalidStateError` 에러를 발생시킵니다."
215212
@@ -244,6 +241,8 @@ msgid ""
244241"if not fut.cancelled():\n"
245242" fut.set_result(42)"
246243msgstr ""
244+ "if not fut.cancelled():\n"
245+ " fut.set_result(42)"
247246
248247#: ../../library/asyncio-future.rst:159
249248msgid "Add a callback to be run when the Future is *done*."
@@ -283,6 +282,9 @@ msgid ""
283282"fut.add_done_callback(\n"
284283" functools.partial(print, \" Future:\" ))"
285284msgstr ""
285+ "# \" fut\" 가 완료되면 'print(\" Future:\" , fut)'를 호출합니다.\n"
286+ "fut.add_done_callback(\n"
287+ " functools.partial(print, \" Future:\" ))"
286288
287289#: ../../library/asyncio-future.rst:178
288290msgid ""
@@ -314,9 +316,8 @@ msgstr ""
314316" 않으면 Future의 상태를 *취소(cancelled)*\\ 로 변경하고, 콜백을 예약한 다음 ``True``\\ 를 반환합니다."
315317
316318#: ../../library/asyncio-future.rst:197
317- #, fuzzy
318319msgid "Added the *msg* parameter."
319- msgstr "`` msg`` 매개 변수를 추가했습니다."
320+ msgstr "* msg* 매개 변수를 추가했습니다."
320321
321322#: ../../library/asyncio-future.rst:202
322323msgid "Return the exception that was set on this Future."
@@ -379,6 +380,33 @@ msgid ""
379380"\n"
380381"asyncio.run(main())"
381382msgstr ""
383+ "async def set_after(fut, delay, value):\n"
384+ " # *delay* 초 동안 잠잡니다.\n"
385+ " await asyncio.sleep(delay)\n"
386+ "\n"
387+ " # *fut* 퓨처의 결과로 *value* 를 설정합니다.\n"
388+ " fut.set_result(value)\n"
389+ "\n"
390+ "async def main():\n"
391+ " # 현재 이벤트 루프를 얻습니다.\n"
392+ " loop = asyncio.get_running_loop()\n"
393+ "\n"
394+ " # 새로운 Future 객체를 만듭니다.\n"
395+ " fut = loop.create_future()\n"
396+ "\n"
397+ " # 병렬 태스크로 \" set_after()\" 코루틴을 실행합니다.\n"
398+ " # 이벤트 루프에 대한 참조를 이미 가지고 있으므로, 여기서는 저수준 \" loop.create_task()\" \n"
399+ " # API를 사용하고 있습니다.\n"
400+ " # 그렇지 않다면 그저 \" asyncio.create_task()\" 를 사용할 수 있었습니다.\n"
401+ " loop.create_task(\n"
402+ " set_after(fut, 1, '... world'))\n"
403+ "\n"
404+ " print('hello ...')\n"
405+ "\n"
406+ " # *fut* 에 결과가 올 때까지 기다렸다가 (1초) 그것을 인쇄합니다.\n"
407+ " print(await fut)\n"
408+ "\n"
409+ "asyncio.run(main())"
382410
383411#: ../../library/asyncio-future.rst:257
384412msgid ""
@@ -428,11 +456,10 @@ msgstr ""
428456":func:`concurrent.futures.as_completed` 함수와 호환되지 않습니다."
429457
430458#: ../../library/asyncio-future.rst:278
431- #, fuzzy
432459msgid ""
433460":meth:`asyncio.Future.cancel` accepts an optional ``msg`` argument, but "
434461":meth:`concurrent.futures.Future.cancel` does not."
435462msgstr ""
436463":meth:`asyncio.Future.cancel`\\ 은 선택적 ``msg`` 인자를 받아들이지만, "
437- ":func :`concurrent.futures.cancel`\\ 은 받아들이지 않습니다."
464+ ":meth :`concurrent.futures.Future .cancel`\\ 은 받아들이지 않습니다."
438465
0 commit comments