// DecRef drops a reference.
//
// Precondition: callers must hold TaskSet.mu for writing.
DecRef drops a reference.

callers must hold TaskSet.mu for writing.
// DecRef drops a reference . // // Precondition : callers must hold TaskSet . mu for writing .
func (s *Session) DecRef() {
	s.SessionRefs.DecRef(func() {
		for ns := s.leader.pidns; ns != nil; ns = ns.parent {
			id := ns.sids[s]
			delete(ns.sids, s)
			delete(ns.sessions, id)
		}
		s.leader.pidns.owner.sessions.Remove(s)
	})
}
func ( s * Session ) DecRef ( ) { s . SessionRefs . DecRef ( func ( ) { for ns := s . leader . pidns ; ns != nil ; ns = ns . parent { id := ns . sids [ s ] delete ( ns . sids , s ) delete ( ns . sessions , id ) } s . leader . pidns . owner . sessions . Remove ( s ) } ) }
DecRef drops a reference.
DecRef drops a reference .
// Remove translations from the leader. // Remove from the list of global Sessions.