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

Function isBackgroundManagerStopped

db/database.go:726–728  ·  view source on GitHub ↗
(state BackgroundProcessState)

Source from the content-addressed store, hash-verified

724}
725
726func isBackgroundManagerStopped(state BackgroundProcessState) bool {
727 return state == BackgroundProcessStateStopped || state == BackgroundProcessStateCompleted || state == BackgroundProcessStateError || state == ""
728}
729
730// waitForBGTCompletion waits for all the background tasks to finish.
731func waitForBGTCompletion(ctx context.Context, waitTimeMax time.Duration, tasks []BackgroundTask, dbName string) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected