MCPcopy
hub / github.com/redis/go-redis / Shutdown

Method Shutdown

maintnotifications/pool_hook.go:186–188  ·  view source on GitHub ↗

Shutdown gracefully shuts down the processor, waiting for workers to complete

(ctx context.Context)

Source from the content-addressed store, hash-verified

184
185// Shutdown gracefully shuts down the processor, waiting for workers to complete
186func (ph *PoolHook) Shutdown(ctx context.Context) error {
187 return ph.workerManager.shutdownWorkers(ctx)
188}

Callers 4

TestProcessorWithConfigFunction · 0.95
TestConnectionHookFunction · 0.95

Calls 1

shutdownWorkersMethod · 0.80

Tested by 4

TestProcessorWithConfigFunction · 0.76
TestConnectionHookFunction · 0.76