Skip to content
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

Ch.1.6 Fetching URLs Concurrently: "interleaving" 并发教程的翻译问题 #60

Closed
qzweng opened this issue May 25, 2021 · 3 comments
Closed

Comments

@qzweng
Copy link

qzweng commented May 25, 2021

原文:Having main do all the priting ensures that output from each goroutine is processed as a unit, with no danger of interleaving if two goroutines finish at the same time.

翻译:「这个程序中我们用main函数来接收所有fetch函数传回的字符串,可以避免在goroutine异步执行还没有完成时main函数提前退出。」

我认为 "interleaving" 的意思不是 “提前退出”,不是 "leave internally",而是「交错」的意思。建议翻译为:「使用 main 函数来打印每个 goroutine 的输出,保障了它们能被完整地处理,避免了因为有两个 goroutine 同时完成而使得其输出混淆在一起的危险。」

@qzweng qzweng changed the title Sec.1.6 Fetching URLs Concurrently: meaning of "interleaving" 并发教程的翻译问题 Ch.1.6 Fetching URLs Concurrently: "interleaving" 并发教程的翻译问题 May 25, 2021
@cch123
Copy link

cch123 commented Aug 1, 2021

@suntong
Copy link

suntong commented Mar 25, 2022

建议翻译为:「使用 main 函数来打印每个 goroutine 的输出,保障了它们能被完整地处理,避免了因为有两个 goroutine 同时完成而使得其输出混淆在一起的危险。」

"interleaving" 是「交错」的意思。

建议翻译为:「使用 main 函数来打印每个 goroutine 的输出,保障了它们能被完整地处理,避免了因为有两个 goroutine 同时完成而使得其输出交错在一起的危险。」

@suntong
Copy link

suntong commented Mar 29, 2022

Fixed & Merged.

Can close now.

@cch123 cch123 closed this as completed Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants