detachSession method
Forget the session. Future mutations will not be recorded into it. The session itself remains valid for inspecting captured changes / producing a changeset.
Implementation
void detachSession(Session s) {
_sessions.remove(s);
s.close();
}