@@ -38,14 +38,13 @@ msgid ""
38
38
msgstr ""
39
39
40
40
#: ../../library/asyncio-policy.rst:24
41
- #, fuzzy
42
41
msgid ""
43
42
"Custom event loop policies can control the behavior of "
44
43
":func:`get_event_loop`, :func:`set_event_loop`, and "
45
44
":func:`new_event_loop`."
46
45
msgstr ""
47
- "사용자 정의 이벤트 루프 정책을 사용하여, :func:`get_event_loop`, :func:`set_event_loop` 및 "
48
- ":func:`new_event_loop` 함수의 동작을 사용자 정의할 수 있습니다."
46
+ "사용자 정의 이벤트 루프 정책은 :func:`get_event_loop`, :func:`set_event_loop` 및 "
47
+ ":func:`new_event_loop`\\ 의 동작을 제어할 수 있습니다."
49
48
50
49
#: ../../library/asyncio-policy.rst:27
51
50
msgid ""
@@ -316,14 +315,13 @@ msgid ""
316
315
msgstr "메인 외의 OS 스레드에서 asyncio 이벤트 루프가 실행되는 경우에도 신뢰성 있게 작동합니다."
317
316
318
317
#: ../../library/asyncio-policy.rst:240
319
- #, fuzzy
320
318
msgid ""
321
319
"There is no noticeable overhead when handling a big number of children "
322
320
"(*O*\\ (1) each time a child terminates), but starting a thread per "
323
321
"process requires extra memory."
324
322
msgstr ""
325
- "많은 수의 자식을 처리할 때 눈에 띄는 오버헤드가 없습니다만 (자식이 종료될 때마다 *O(1)* ), 프로세스마다 스레드를 시작하는 "
326
- "데 추가 메모리가 필요합니다."
323
+ "많은 수의 자식을 처리할 때 눈에 띄는 오버헤드가 없습니다만 (자식이 종료될 때마다 *O* \\ (1)), 프로세스마다 스레드를 "
324
+ "시작하는 데 추가 메모리가 필요합니다."
327
325
328
326
#: ../../library/asyncio-policy.rst:243
329
327
msgid "This watcher is used by default."
@@ -353,14 +351,13 @@ msgid ""
353
351
msgstr "감시자가 일단 설치되면 다른 스레드에서 서브 프로세스를 실행하는 데 제한이 없습니다."
354
352
355
353
#: ../../library/asyncio-policy.rst:259
356
- #, fuzzy
357
354
msgid ""
358
355
"The solution is safe but it has a significant overhead when handling a "
359
356
"big number of processes (*O*\\ (*n*) each time a :py:data:`SIGCHLD` is "
360
357
"received)."
361
358
msgstr ""
362
359
"이 해법은 안전하지만 많은 수의 프로세스를 처리할 때 상당한 오버헤드가 있습니다 (:py:data:`SIGCHLD`\\ 가 수신될 "
363
- "때마다 *O(n)* )."
360
+ "때마다 *O* \\ (*n*) )."
364
361
365
362
#: ../../library/asyncio-policy.rst:269
366
363
msgid ""
@@ -373,14 +370,13 @@ msgstr ""
373
370
"발생합니다)."
374
371
375
372
#: ../../library/asyncio-policy.rst:276
376
- #, fuzzy
377
373
msgid ""
378
374
"This solution is as safe as :class:`MultiLoopChildWatcher` and has the "
379
375
"same *O*\\ (*n*) complexity but requires a running event loop in the main"
380
376
" thread to work."
381
377
msgstr ""
382
- "이 해법은 :class:`MultiLoopChildWatcher`\\ 만큼 안전하고 같은 *O(N)* 복잡성을 갖고 있지만, "
383
- "작동하려면 메인 스레드에서 실행 중인 이벤트 루프가 필요합니다."
378
+ "이 해법은 :class:`MultiLoopChildWatcher`\\ 만큼 안전하고 같은 *O* \\ (*n*) 복잡성을 갖고 있지만,"
379
+ " 작동하려면 메인 스레드에서 실행 중인 이벤트 루프가 필요합니다."
384
380
385
381
#: ../../library/asyncio-policy.rst:283
386
382
msgid ""
@@ -392,11 +388,10 @@ msgstr ""
392
388
" 망가뜨리고 그들의 종료를 기다릴 수 있습니다."
393
389
394
390
#: ../../library/asyncio-policy.rst:287
395
- #, fuzzy
396
391
msgid ""
397
392
"There is no noticeable overhead when handling a big number of children "
398
393
"(*O*\\ (1) each time a child terminates)."
399
- msgstr "많은 수의 자식을 처리할 때 눈에 띄는 오버헤드가 없습니다 (자식이 종료될 때마다 *O(1)* )."
394
+ msgstr "많은 수의 자식을 처리할 때 눈에 띄는 오버헤드가 없습니다 (자식이 종료될 때마다 *O* \\ (1))."
400
395
401
396
#: ../../library/asyncio-policy.rst:290
402
397
msgid ""
@@ -447,6 +442,18 @@ msgid ""
447
442
"\n"
448
443
"asyncio.set_event_loop_policy(MyEventLoopPolicy())"
449
444
msgstr ""
445
+ "class MyEventLoopPolicy(asyncio.DefaultEventLoopPolicy):\n"
446
+ "\n"
447
+ " def get_event_loop(self):\n"
448
+ " \"\"\" 이벤트 루프를 가져옵니다.\n"
449
+ "\n"
450
+ " None이거나 EventLoop의 인스턴스일 수 있습니다.\n"
451
+ " \"\"\" \n"
452
+ " loop = super().get_event_loop()\n"
453
+ " # loop로 무언가를 합니다 ...\n"
454
+ " return loop\n"
455
+ "\n"
456
+ "asyncio.set_event_loop_policy(MyEventLoopPolicy())"
450
457
451
458
#~ msgid ""
452
459
#~ "An event loop policy is a global"
0 commit comments