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

Adds ConnectionOptions for createConnectionPool parameters #337

Merged
merged 2 commits into from
Oct 27, 2023

Conversation

qxjit
Copy link
Member

@qxjit qxjit commented Oct 27, 2023

Providing a ConnectionOptions record should be a better experience for
anyone trying to read the docs or look at example code. This also adds a
StripeOption type that allows users to easily get one stripe allocated
per thread capability, which is what is recommended by resource-pool.

Providing a `ConnectionOptions` record should be a better experience for
anyone trying to read the docs or look at example code. This also adds a
`StripeOption` type that allows users to easily get one stripe allocated
per thread capability, which is what is recommended by `resource-pool`.

{- |
Allocates a connection from the pool and performs an action with it. This
function will block if the maximum number of connections is reached.
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing the since annotation here.

@qxjit qxjit merged commit c3bdceb into master Oct 27, 2023
@qxjit qxjit deleted the update-create-connection-pool branch October 27, 2023 18:41
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.

3 participants