If I close a database pool when ending a session all remainig user with an open app will lose their database connection.
session$onSessionEnded(function() {
observe({
pool::poolClose(db_connex)
pool::poolClose(con_postgres)
})
})
Is there a way to avoid this habbit?
Will the pool close its open connection when gc runs?