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

x/website: "Advanced Go Concurrency Patterns" #59165

Closed
donhuvy opened this issue Mar 21, 2023 · 3 comments
Closed

x/website: "Advanced Go Concurrency Patterns" #59165

donhuvy opened this issue Mar 21, 2023 · 3 comments
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. website
Milestone

Comments

@donhuvy
Copy link

donhuvy commented Mar 21, 2023

At this link https://go.dev/doc/ section "Advanced Go Concurrency Patterns", the content of YouTube video (year 2013 is too old, current year is 2023), should remove it or update it.

redirect to https://www.youtube.com/watch?v=QDDwwePbDtw&ab_channel=GoogleDevelopers

image

image

@gopherbot gopherbot added this to the Proposal milestone Mar 21, 2023
@seankhliao seankhliao changed the title proposal: x/website: "Advanced Go Concurrency Patterns" x/website: "Advanced Go Concurrency Patterns" Mar 21, 2023
@seankhliao
Copy link
Member

what about the content is old?

@seankhliao seankhliao added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Mar 21, 2023
@donhuvy
Copy link
Author

donhuvy commented Mar 21, 2023

image

for {
	if s.closed {
		close(s.updates)
		return
	}
	items, next, err := s.fetcher.Fetch()
	if err != nil {
		s.err = err
		time.Sleep(10 * time.Second)
		continue
	}

	for _, item := range items {
		s.updates <- item
	}

	if now := time.Now(); next.After(now){
		time.Sleep(next.Sub(now))
	}
}

image

@seankhliao
Copy link
Member

working as intended

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Mar 21, 2023
@golang golang locked and limited conversation to collaborators Mar 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. website
Projects
None yet
Development

No branches or pull requests

3 participants