This approach has fewer code changes, but it makes shouldAutoClose not the only source of truth for us to decide should we close the Watchdog(and the executor) or not, it is now implicitly decided by shouldAutoClose and needExecutor in ClientContext. It may cause some confusion if a customer decides to implement their own WatchdogProvider.
This approach has fewer code changes, but it makes
shouldAutoClose
not the only source of truth for us to decide should we close the Watchdog(and the executor) or not, it is now implicitly decided byshouldAutoClose
andneedExecutor
inClientContext
. It may cause some confusion if a customer decides to implement their ownWatchdogProvider
.