Closed oleriajm closed 9 months ago
The Session must not be usable after the caller closed it explicitly.
Following pattern just works at the moment
session := driver.NewSession(ctx, sessionConfig) session.Close() session.ExecuteRead(...) // and keep using session with more operations...
This is because Closing session cleans up pool/router etc, but all the references are still preserved.
As a good practice, the behavior should be fail-fast/fail-hard once you called Close on it
Close
The Session must not be usable after the caller closed it explicitly.
Following pattern just works at the moment
This is because Closing session cleans up pool/router etc, but all the references are still preserved.
As a good practice, the behavior should be fail-fast/fail-hard once you called
Close
on it