WithReload toggles whether the factory should reload cached instances upon OnReload event.
(shouldReload bool)
| 29 | // WithReload toggles whether the factory should reload cached instances upon |
| 30 | // OnReload event. |
| 31 | func WithReload(shouldReload bool) ProvidersOptionFunc { |
| 32 | return func(options *providersOption) { |
| 33 | options.reloadable = shouldReload |
| 34 | } |
| 35 | } |
no outgoing calls