MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / Stop

Method Stop

db/channel_cache.go:146–152  ·  view source on GitHub ↗

Stop stops the channel cache and it's background tasks.

(ctx context.Context)

Source from the content-addressed store, hash-verified

144
145// Stop stops the channel cache and it's background tasks.
146func (c *channelCacheImpl) Stop(ctx context.Context) {
147 // Signal to terminate channel cache background tasks.
148 close(c.terminator)
149
150 // Wait for channel cache background tasks to finish.
151 waitForBGTCompletion(ctx, BGTCompletionMaxWait, c.backgroundTasks, c.dbName)
152}
153
154func (c *channelCacheImpl) Init(initialSequence uint64) {
155 c.seqLock.Lock()

Callers

nothing calls this directly

Calls 1

waitForBGTCompletionFunction · 0.85

Tested by

no test coverage detected