-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: Correct spelling and Update documents #1684
Merged
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,7 @@ order of operations. | |
┌─>│ timers │ | ||
│ └──────────┬────────────┘ | ||
│ ┌──────────┴────────────┐ | ||
│ │ I/O callbacks │ | ||
│ │ pending callbacks │ | ||
│ └──────────┬────────────┘ | ||
│ ┌──────────┴────────────┐ | ||
│ │ idle, prepare │ | ||
|
@@ -80,7 +80,7 @@ Node.js를 시작할 때 이벤트 루프를 초기화하고 제공된 입력 | |
┌─>│ timers │ | ||
│ └──────────┬────────────┘ | ||
│ ┌──────────┴────────────┐ | ||
│ │ I/O callbacks │ | ||
│ │ pending callbacks │ | ||
│ └──────────┬────────────┘ | ||
│ ┌──────────┴────────────┐ | ||
│ │ idle, prepare │ | ||
|
@@ -142,12 +142,11 @@ _**NOTE:** 윈도우와 Unix/Linux 구현체간에 약간의 차이가 있지만 | |
|
||
* **timers**: this phase executes callbacks scheduled by `setTimeout()` | ||
and `setInterval()`. | ||
* **I/O callbacks**: executes almost all callbacks with the exception of | ||
close callbacks, the ones scheduled by timers, and `setImmediate()`. | ||
* **pending callbacks**: executes I/O callbacks deferred to the next loop iteration. | ||
* **idle, prepare**: only used internally. | ||
* **poll**: retrieve new I/O events; node will block here when appropriate. | ||
* **poll**: retrieve new I/O events; execute I/O related callbacks (almost all with the exception of close callbacks, the ones scheduled by timers, and `setImmediate()`); node will block here when appropriate. | ||
* **check**: `setImmediate()` callbacks are invoked here. | ||
* **close callbacks**: e.g. `socket.on('close', ...)`. | ||
* **close callbacks**: some close callbacks, e.g. `socket.on('close', ...)`. | ||
|
||
Between each run of the event loop, Node.js checks if it is waiting for | ||
any asynchronous I/O or timers and shuts down cleanly if there are not | ||
|
@@ -158,10 +157,10 @@ any. | |
|
||
* **timers**: 이 단계는 `setTimeout()`과 `setInterval()`로 스케줄링한 | ||
콜백을 실행합니다. | ||
* **I/O callbacks**: 클로즈 콜백, 타이머로 스케줄링된 콜백, | ||
`setImmediate()`를 제외한 거의 모든 콜백을 실행합니다. | ||
* **pending callbacks**: 다음 루프 반복으로 연기된 I/O 콜백들을 실행합니다. | ||
* **idle, prepare**: 내부용으로만 사용합니다. | ||
* **poll**: 새로운 I/O 이벤트를 가져옵니다. 적절한 시기에 node는 여기서 블록 합니다. | ||
* **poll**: 새로운 I/O 이벤트를 가져옵니다. 클로즈 콜백, 타이머로 스케줄링된 콜백, | ||
`setImmediate()`를 제외한 거의 모든 콜백을 실행합니다. 적절한 시기에 node는 여기서 블록 합니다. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
가 되어야 할 것 같습니다. |
||
* **check**: `setImmediate()` 콜백은 여기서 호출됩니다. | ||
* **close callbacks**: 예시: `socket.on('close', ...)` | ||
|
||
|
@@ -291,19 +290,19 @@ Note: **poll** 단계가 이벤트 루프를 모두 차지하지 않게 하기 | |
멈추는 하는 하드 최댓값(시스템에 따라 다릅니다.)도 가집니다. | ||
|
||
<!-- | ||
### I/O callbacks | ||
### pending callbacks | ||
|
||
This phase executes callbacks for some system operations such as types | ||
of TCP errors. For example if a TCP socket receives `ECONNREFUSED` when | ||
attempting to connect, some \*nix systems want to wait to report the | ||
error. This will be queued to execute in the **I/O callbacks** phase. | ||
error. This will be queued to execute in the **pending callbacks** phase. | ||
--> | ||
|
||
### I/O 콜백 | ||
### pending 콜백 | ||
|
||
이 단계에서는 TCP 오류 같은 시스템 작업의 콜백을 실행합니다. 예를 들어 TCP 소켓이 | ||
연결을 시도하다가 `ECONNREFUSED`를 받으면 일부 \*nix 시스템은 오류를 보고하기를 | ||
기다리려고 합니다. 이는 **I/O callbacks** 단계에서 실행되기 위해 큐에 추가될 것입니다. | ||
기다리려고 합니다. 이는 **pending callbacks** 단계에서 실행되기 위해 큐에 추가될 것입니다. | ||
|
||
<!-- | ||
### poll | ||
|
@@ -385,7 +384,7 @@ and the **poll** phase becomes idle, it will end and continue to the | |
### check | ||
|
||
이 단계는 **poll** 단계가 완료된 직후 사람이 콜백을 실행할 수 있게 합니다. **poll** | ||
단계가 유휴상태가 되고 스크립트가 `setImmediate()`로 큐에 추가되었다면 이벤트 루프틑 | ||
단계가 유휴상태가 되고 스크립트가 `setImmediate()`로 큐에 추가되었다면 이벤트 루프를 | ||
기다리지 않고 **check** 단계를 계속할 것입니다. | ||
|
||
`setImmediate()`는 사실 이벤트 루프의 별도 단계에서 실행되는 특수한 타이머입니다. | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change isn't translated.