Skip to content

Comments

Refactored async alerts.#1586

Open
kmvanbrunt wants to merge 7 commits intomainfrom
refactor_async_alert
Open

Refactored async alerts.#1586
kmvanbrunt wants to merge 7 commits intomainfrom
refactor_async_alert

Conversation

@kmvanbrunt
Copy link
Member

Replaced async_alert() and async_update_prompt() with a single function called add_alert(). This new function is thread-safe and does not require you to acquire a mutex before calling it like the previous functions did.

@github-actions
Copy link
Contributor

🤖 Hi @kmvanbrunt, I've received your request, and I'm working on it now! You can track my progress in the logs for more details.

@codecov
Copy link

codecov bot commented Feb 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.42%. Comparing base (e38f0f7) to head (dd68571).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1586      +/-   ##
==========================================
+ Coverage   99.15%   99.42%   +0.26%     
==========================================
  Files          20       20              
  Lines        4616     4665      +49     
==========================================
+ Hits         4577     4638      +61     
+ Misses         39       27      -12     
Flag Coverage Δ
unittests 99.42% <100.00%> (+0.26%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions
Copy link
Contributor

🤖 I'm sorry @kmvanbrunt, but I was unable to process your request. Please see the logs for more details.

"""Contents of an asynchonous alert which display while user is at prompt.

:param msg: an optional message to be printed above the prompt.
:param prompt: an optional string to dynamically replace the current prompt.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommend documenting timestamp parameter as well in the docstring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants