[다미] proposal-top-level-await 번역#50
Open
damilog wants to merge 4 commits into
Open
Conversation
huckjoo
approved these changes
Jul 13, 2023
|
|
||
| ```js | ||
| // usage.mjs | ||
| import 프로미스, { output } from "./awaiting.mjs"; |
Contributor
There was a problem hiding this comment.
Suggested change
| import 프로미스, { output } from "./awaiting.mjs"; | |
| import promise, { output } from "./awaiting.mjs"; |
프로미스 promise로 변경해주세요 ㅋㅋㅋ
| - 프로토콜을 적용하는 것을 잊은 경우, 일부 시간 동안 "그냥 작동"할 수 있습니다. (race에서 특정 방식으로 승리하기 때문에) | ||
| - 깊은 모듈 계층에서, 프로미스는 체인의 각 단계를 통해 명시적으로 스레드되어야 합니다. | ||
|
|
||
| 예를 들어, 여기에서 `"./awaiting.mjs"`의 프로미스를 제대로 기다렸지만, 이를 다시 export하는 것을 잊었으므로, 모듈을 사용하는 모듈이 여전히 원래 race 상태로 실행될 수 있습니다. |
Contributor
There was a problem hiding this comment.
Suggested change
| 예를 들어, 여기에서 `"./awaiting.mjs"`의 프로미스를 제대로 기다렸지만, 이를 다시 export하는 것을 잊었으므로, 모듈을 사용하는 모듈이 여전히 원래 race 상태로 실행될 수 있습니다. | |
| 예를 들어, 여기에서 `"./awaiting.mjs"`의 프로미스를 제대로 기다렸지만, 이를 다시 export하는 것을 잊었으므로, 모듈을 사용하는 모듈이 여전히 기존의 경쟁 상태(race condition)에 빠질 수 있습니다. |
'race condition' 혹은 '경쟁 상태'로 쓰는건 어떤지 제안드립니다. race condition이 보통 같이 쓰여서 race 상태가 약간 어색해보이는 느낌이 있네요
Co-authored-by: HyukJoo Kwon <76726411+huckjoo@users.noreply.github.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
proposal-top-level-await 번역입니다 .