MCPcopy Create free account
hub / github.com/DoNewsCode/core / WithReaderReload

Function WithReaderReload

otkafka/dependency_option.go:43–47  ·  view source on GitHub ↗

WithReaderReload toggles whether the reader factory should reload cached instances upon OnReload event.

(shouldReload bool)

Source from the content-addressed store, hash-verified

41// WithReaderReload toggles whether the reader factory should reload cached instances upon
42// OnReload event.
43func WithReaderReload(shouldReload bool) ProvidersOptionFunc {
44 return func(options *providersOption) {
45 options.readerReloadable = shouldReload
46 }
47}
48
49// WithWriterReload toggles whether the writer factory should reload cached instances upon
50// OnReload event.

Callers 1

TestModule_hotReloadFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestModule_hotReloadFunction · 0.68