Add async shutdown method for StoppableCredentialsProvider.
Add a syncShutdown method for StoppableCredentialsProvider and deprecate the existing close method for clarity and consistency.
This is not a breaking change; the additional methods on the StoppableCredentialsProvider protocol have default implementations. The async shutdown method default implementation will fatal error; conforming types outside of this package will need to override this implementation if they want to move to using async shutdown. The conforming types in this package override the default implementation.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue #, if available:
Description of changes:
StoppableCredentialsProvider
.syncShutdown
method forStoppableCredentialsProvider
and deprecate the existingclose
method for clarity and consistency.This is not a breaking change; the additional methods on the
StoppableCredentialsProvider
protocol have default implementations. The async shutdown method default implementation will fatal error; conforming types outside of this package will need to override this implementation if they want to move to using async shutdown. The conforming types in this package override the default implementation.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.