MCPcopy
hub / github.com/tinode/chat / onBackgroundTimer

Method onBackgroundTimer

server/session.go:1389–1399  ·  view source on GitHub ↗

onBackgroundTimer marks background session as foreground and informs topics it's subscribed to.

()

Source from the content-addressed store, hash-verified

1387
1388// onBackgroundTimer marks background session as foreground and informs topics it's subscribed to.
1389func (s *Session) onBackgroundTimer() {
1390 s.subsLock.RLock()
1391 defer s.subsLock.RUnlock()
1392
1393 update := &sessionUpdate{sess: s}
1394 for _, sub := range s.subs {
1395 if sub.supd != nil {
1396 sub.supd <- update
1397 }
1398 }
1399}

Callers 3

writeGrpcLoopMethod · 0.95
writeLoopMethod · 0.95
writeOnceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected