generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: asynchronous providers (#2055)
closes #1949 Changes: - Splits `Provider` interface into: - `SynchronousProvider`: same as old interface, can load values from the data source on-demand - `AsynchronousProvider`: used by providers that prefer to sync with their data source - `Manager` owns a `cache` which syncs asynchronous providers - When `Manager` is getting values from an asynchronous provider, it now accesses it via `cache` - When `Manager` is setting values for an asynchronous provider, it directly sets it with the provider and then notifies the cache - `OnePasswordProvider` is now an `AsynchronousProvider` so that we don't cause multiple annoying authorization prompts - `ASM` is now an `AsynchronousProvider` with it's previous `secretsCache` now being repurposed to work more generally.
- Loading branch information
Showing
14 changed files
with
605 additions
and
395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.