There is technically a race condition here (where the atomic could be reassigned between the set and get). Assign the `ResultSet` to a variable and return that.