forked from streamlit/streamlit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rearrange + rename "cached message replay" code (streamlit#6012)
Moves "cached message replay" logic into its own module, and simplifies/renames a few things for clarity. - message replay logic is moved out of `cache_utils` and into its own module, `cached_message_replay`. This is the bulk of the PR. - The `CacheWarningCallStack` and `CacheMessagesCallStack` utilities have been simplified and merged into a single class called `CachedMessageReplayContext`. (This object has just a single context manager to wrapped cached-function calls, which helps with some context manager deep-nesting.) - `replay_result_messages()` is now called `replay_cached_messages()`
- Loading branch information
Showing
8 changed files
with
552 additions
and
582 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
Oops, something went wrong.