mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-13 09:53:10 -06:00
Expand function doc
This commit is contained in:
parent
8fdc520e32
commit
721e00d481
|
|
@ -129,7 +129,9 @@ func (s *UserStreamListener) GetStreamPosition() types.StreamPosition {
|
||||||
|
|
||||||
// GetNotifyChannel returns a channel that is closed when there may be an
|
// GetNotifyChannel returns a channel that is closed when there may be an
|
||||||
// update for the user.
|
// update for the user.
|
||||||
// sincePos specifies from which point we want to be notified about
|
// sincePos specifies from which point we want to be notified about. If there
|
||||||
|
// has already been an update after sincePos we'll return a closed channel
|
||||||
|
// immediately.
|
||||||
func (s *UserStreamListener) GetNotifyChannel(sincePos types.StreamPosition) <-chan struct{} {
|
func (s *UserStreamListener) GetNotifyChannel(sincePos types.StreamPosition) <-chan struct{} {
|
||||||
s.userStream.lock.Lock()
|
s.userStream.lock.Lock()
|
||||||
defer s.userStream.lock.Unlock()
|
defer s.userStream.lock.Unlock()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue