We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We can allow consumers of this library to configure certain parameters, such as parallelization factors, using the Functional Options pattern:
type config struct { parallelization int } func newConfig() config { return config{ parallelization: 10, } } type BetweenOption func(*config) // WithParallelization configures the level of parallelization to use for // concurrent Distance Matrix API requests. func WithParallelization(parallelization int) BetweenOption { return func(c *config) { c.parallelization = parallelization } } func BetweenPoints( ctx context.Context, client *maps.Client, in distance.BetweenPointsInput, options ...BetweenOption, ) (*distance.MatrixResponse, error) {}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We can allow consumers of this library to configure certain parameters, such as parallelization factors, using the Functional Options pattern:
The text was updated successfully, but these errors were encountered: