Skip to content
This repository was archived by the owner on May 18, 2023. It is now read-only.

Use channels to avoid races in tests#37

Merged
djmitche merged 2 commits intobenbjohnson:masterfrom
djmitche:issue8
Oct 29, 2021
Merged

Use channels to avoid races in tests#37
djmitche merged 2 commits intobenbjohnson:masterfrom
djmitche:issue8

Conversation

@djmitche
Copy link
Copy Markdown
Collaborator

Using a mock for time doesn't mean races aren't important. This tries to set a good Example by using channels rather than shared variables for communication between goroutines.

Using a mock for time doesn't mean races aren't important.  This tries
to set a good Example by using channels rather than shared variables for
communication between goroutines.
@djmitche
Copy link
Copy Markdown
Collaborator Author

Fixes #8.

@djmitche
Copy link
Copy Markdown
Collaborator Author

@vickenty any chance you could have a look

@djmitche
Copy link
Copy Markdown
Collaborator Author

Updated to use atomics in the examples.

@djmitche djmitche merged commit 1ae85fe into benbjohnson:master Oct 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants