edgedb / edgedb-go

The official Go client library for EdgeDB
https://pkg.go.dev/github.com/edgedb/edgedb-go
Apache License 2.0
167 stars 11 forks source link

Document if the Client can be useed concurrently. #311

Closed chirino closed 1 month ago

chirino commented 2 months ago

Describe the bug

It's not clear if the Client can be used concurrently. Should we be creating a new client for each http request serviced, or is it safe to share one across all requests?

fmoor commented 2 months ago

The documentation for the Client type says:

Client is a connection pool and is safe for concurrent use.

Where do you recommend putting further documentation about this?

chirino commented 1 month ago

Missed that. Thanks!