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

feat: add translated md #159

Merged
merged 3 commits into from
Sep 2, 2021
Merged

feat: add translated md #159

merged 3 commits into from
Sep 2, 2021

Conversation

pseudoyu
Copy link
Collaborator

@pseudoyu pseudoyu commented Sep 2, 2021

No description provided.

2021/w34_the_underutilized_usefulness_of_sync_Once.md Outdated Show resolved Hide resolved
```

以上就是 `sync.Once` 的方案,和之前的示例很相似,但现在更容易理解(至少在我看来)。只有一个返回值,且代码自上而下,非常直观,而不必像之前一样对 `entry.wait` 通道进行阅读和理解。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

通道
感觉阅读群体对channel更加容易理解

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好多原文感觉不翻译反而更加可读。。。😂

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同理 上下文 -> context

2021/w34_the_underutilized_usefulness_of_sync_Once.md Outdated Show resolved Hide resolved
@Cluas Cluas merged commit 4559273 into gocn:master Sep 2, 2021
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

Successfully merging this pull request may close these issues.

2 participants