Hi all! Does anyone know if Drop is purposefully not implemented for Session? If not, would people be open to having it implemented? It would be really helpful for RAII patterns and any sort of event loops.
For implementation, we could maybe do something similar to what sqlx does and just spawn the disconnect function as a separate top level task that can be optionally be awaited if needed.
I am happy to open a PR if folks are good with it. Thanks :)
Hi all! Does anyone know if Drop is purposefully not implemented for Session? If not, would people be open to having it implemented? It would be really helpful for RAII patterns and any sort of event loops.
For implementation, we could maybe do something similar to what sqlx does and just spawn the disconnect function as a separate top level task that can be optionally be awaited if needed.
I am happy to open a PR if folks are good with it. Thanks :)