()
| 892 | } |
| 893 | |
| 894 | func (s *Session) Snapshot() *Snapshot { |
| 895 | s.snapshotMu.RLock() |
| 896 | defer s.snapshotMu.RUnlock() |
| 897 | return s.snapshot |
| 898 | } |
| 899 | |
| 900 | // getSnapshot flushes pending changes and updates the session's snapshot |
| 901 | // if needed for the given request. When callerRef is true, the returned |
no outgoing calls