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

docs: improve onboarding #150

Merged
merged 3 commits into from
Nov 21, 2023
Merged

docs: improve onboarding #150

merged 3 commits into from
Nov 21, 2023

Conversation

gastonfournier
Copy link
Contributor

When getting started with go sdk it's easy to miss waiting for initialization. This change will make it easy for newcomers to use the SDK and more advanced users should be able to wait for the readiness in different ways if they don't want to block the main thread

When getting started with go sdk it's easy to miss waiting for initialization. This change will make it easy for newcomers to use the SDK and more advanced users should be able to wait for the readiness in different ways if they don't want to block the main thread
Copy link
Contributor

@kwasniew kwasniew left a comment

Choose a reason for hiding this comment

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

This line makes me curious what are the other ways and why this is good for new joiners.

README.md Outdated
@@ -46,6 +46,9 @@ func init() {
unleash.WithUrl("http://unleash.herokuapp.com/api/"),
unleash.WithCustomHeaders(http.Header{"Authorization": {"<API token>"}}),
)

// The line below will block until the default client is ready or returns immediately. You can wait for readiness in a different way but this is good for new joiners
Copy link
Contributor

Choose a reason for hiding this comment

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

This line makes me curious what are the other ways and why this is good for new joiners.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Most show different ways of initializing: sync vs async. Example: https://github.com/Unleash/unleash-client-java#example-configurations

Maybe we can use a similar format. I'm just waiting for confirmation that this was actually the problem

@gastonfournier gastonfournier merged commit 5b4ae18 into v4 Nov 21, 2023
9 checks passed
@gastonfournier gastonfournier deleted the docs/onboarding-help branch November 21, 2023 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants